Skip to content

Commit ffb5330

Browse files
authored
Merge pull request #1018 from lann/dispatch-rust-docs
ci: Trigger rust-docs update on release or main merge
2 parents 95d78c4 + c9d4e97 commit ffb5330

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/dispatch.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
docs:
2222
- 'docs/**'
2323
24-
dispatch:
24+
dispatch-spin-docs:
2525
name: Dispatch spin-docs-updated event
2626
needs: changes
2727
if: ${{ needs.changes.outputs.docs == 'true' }}
@@ -33,4 +33,17 @@ jobs:
3333
token: ${{ secrets.DEST_REPO_ACCESS_TOKEN }}
3434
repository: ${{ secrets.DEST_REPO }}
3535
event-type: spin-docs-updated
36-
client-payload: '{"event_type": "spin-docs-updated", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
36+
client-payload: '{"event_type": "spin-docs-updated", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
37+
38+
dispatch-rust-docs:
39+
name: Dispatch rust-docs spin-update event
40+
runs-on: ubuntu-latest
41+
if: ${{ github.repository_owner == 'fermyon' }}
42+
steps:
43+
- name: Repository Dispatch
44+
uses: peter-evans/repository-dispatch@v2
45+
with:
46+
token: ${{ secrets.DEST_REPO_ACCESS_TOKEN }}
47+
repository: fermyon/rust-docs
48+
event-type: spin-update
49+
client-payload: '{"ref": "${{ github.ref_name }}"}'

0 commit comments

Comments
 (0)