From d965409f4459f563545c11561ffefb40cbe30e09 Mon Sep 17 00:00:00 2001 From: Suhaha Date: Mon, 6 Jul 2026 22:29:32 +0800 Subject: [PATCH] Add trigger for docs-staging nextgen workflow Added a step to trigger the nextgen workflow in docs-staging. --- .github/workflows/dispatch.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 4258a93aa253d..59a70a2ff815f 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -40,3 +40,12 @@ jobs: -H "Authorization: token ${{ secrets.DOCS_STAGING }}" \ https://api.github.com/repos/pingcap/docs-staging/actions/workflows/update.yml/dispatches \ -d '{"ref":"main","inputs":{"full": "false", "repo":"${{ github.repository }}","branch":"${{ github.ref_name }}"}}' + + - name: trigger docs-staging nextgen workflow + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token ${{ secrets.DOCS_STAGING }}" \ + https://api.github.com/repos/pingcap/docs-staging/actions/workflows/update-nextgen.yml/dispatches \ + -d '{"ref":"nextgen","inputs":{"full": "false", "repo":"${{ github.repository }}","branch":"${{ github.ref_name }}"}}'