-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: setup docs previews * test * delete
- Loading branch information
1 parent
8d0937a
commit 4038b0c
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# https://github.com/sveltejs/svelte.dev/blob/main/apps/svelte.dev/scripts/sync-docs/README.md | ||
name: Docs preview create request | ||
|
||
on: | ||
pull_request: | ||
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 }} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# https://github.com/sveltejs/svelte.dev/blob/main/apps/svelte.dev/scripts/sync-docs/README.md | ||
name: Docs preview delete request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: [closed] | ||
|
||
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-delete | ||
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 }} | ||
} |