mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-28 16:12:17 +01:00
27 lines
825 B
YAML
27 lines
825 B
YAML
# https://github.com/sveltejs/svelte.dev/blob/main/apps/svelte.dev/scripts/sync-docs/README.md
|
|
name: Docs preview create request
|
|
|
|
on:
|
|
pull_request_target:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
dispatch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Repository Dispatch
|
|
uses: peter-evans/repository-dispatch@v3
|
|
with:
|
|
token: ${{ secrets.SYNC_REQUEST_TOKEN }}
|
|
repository: sveltejs/svelte.dev
|
|
event-type: docs-preview-create
|
|
client-payload: |-
|
|
{
|
|
"package": "svelte",
|
|
"repo": "${{ github.repository }}",
|
|
"owner": "${{ github.event.pull_request.head.repo.owner.login }}",
|
|
"branch": "${{ github.event.pull_request.head.ref }}",
|
|
"pr": ${{ github.event.pull_request.number }}
|
|
}
|