Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dispatch #8857

Merged
merged 1 commit into from
Jun 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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