Skip to content

Commit d965409

Browse files
authored
Add trigger for docs-staging nextgen workflow
Added a step to trigger the nextgen workflow in docs-staging.
1 parent 7536eb6 commit d965409

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/dispatch.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,12 @@ jobs:
4040
-H "Authorization: token ${{ secrets.DOCS_STAGING }}" \
4141
https://api.github.com/repos/pingcap/docs-staging/actions/workflows/update.yml/dispatches \
4242
-d '{"ref":"main","inputs":{"full": "false", "repo":"${{ github.repository }}","branch":"${{ github.ref_name }}"}}'
43+
44+
- name: trigger docs-staging nextgen workflow
45+
run: |
46+
curl \
47+
-X POST \
48+
-H "Accept: application/vnd.github+json" \
49+
-H "Authorization: token ${{ secrets.DOCS_STAGING }}" \
50+
https://api.github.com/repos/pingcap/docs-staging/actions/workflows/update-nextgen.yml/dispatches \
51+
-d '{"ref":"nextgen","inputs":{"full": "false", "repo":"${{ github.repository }}","branch":"${{ github.ref_name }}"}}'

0 commit comments

Comments
 (0)