From e57a95fe461f263b8e7d07f8813c0f554014ec60 Mon Sep 17 00:00:00 2001 From: Yini Xu <34967660+YiniXu9506@users.noreply.github.com> Date: Wed, 8 Sep 2021 12:02:58 +0800 Subject: [PATCH] chore: add dispatch back (#6404) --- .github/workflows/dispatch.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 356e25c52e0f9..dbc0619e656ca 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -20,10 +20,10 @@ jobs: echo "::set-output name=repo::$(cut -d'/' -f2 <<< ${{ github.repository }})" echo "::set-output name=sha::$(sha=${{ github.sha }}; echo ${sha:0:6})" - # - name: Repository Dispatch - # uses: peter-evans/repository-dispatch@v1.1.1 - # with: - # token: ${{ secrets.PR_TRIGGER_BUILD_TOKEN }} - # repository: pingcap/website-docs/ - # event-type: ${{ steps.extract_info.outputs.repo }}/${{ steps.extract_info.outputs.branch }}-${{ steps.extract_info.outputs.sha }} - # client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "repo": "${{ github.repository }}"}' + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v1.1.1 + with: + token: ${{ secrets.PR_TRIGGER_BUILD_TOKEN }} + repository: pingcap/website-docs/ + event-type: ${{ steps.extract_info.outputs.repo }}/${{ steps.extract_info.outputs.branch }}-${{ steps.extract_info.outputs.sha }} + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "repo": "${{ github.repository }}"}'