Skip to content

Commit

Permalink
add dispatch (#8857)
Browse files Browse the repository at this point in the history
  • Loading branch information
shczhen committed Jun 9, 2022
1 parent 80a0e13 commit f3d59a2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@ on:
- release-4.0
- release-5.*
- release-6.0
- i18n-ja-release-5.4

jobs:
trigger:
runs-on: ubuntu-latest

steps:
- name: Extract sha
id: extract
shell: bash
run: |
echo "::set-output name=sha::$(sha=${{ github.sha }}; echo ${sha:0:6})"
- name: Extract sha
id: extract
shell: bash
run: |
echo "::set-output name=sha::$(sha=${{ github.sha }}; echo ${sha:0:6})"
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PR_TRIGGER_BUILD_TOKEN }}
repository: pingcap/website-docs
event-type: ${{ github.repository }}/${{ github.ref_name }}-${{ steps.extract.outputs.sha }}
Expand Down

0 comments on commit f3d59a2

Please sign in to comment.