Skip to content

Commit 447ccc6

Browse files
Add trigger to initiate website rebuild (#58)
* Add trigger to initiate website rebuild Requires PAT_TOKEN secret to be configured with actions permission on the site repo. * Rename PAT
1 parent 3b320c9 commit 447ccc6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/update_website.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Trigger website update
2+
on:
3+
push:
4+
tags: "v*"
5+
jobs:
6+
dispatch:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/github-script@v6
10+
with:
11+
github-token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
12+
script: |
13+
await github.rest.actions.createWorkflowDispatch({
14+
owner: 'jmespath-community',
15+
repo: 'jmespath.site',
16+
workflow_id: 'build.yaml',
17+
ref: 'master',
18+
inputs: { version: '${{ github.ref_name }}' }
19+
})

0 commit comments

Comments
 (0)