apisix/.github/workflows/workflow-cancel.yml
dependabot[bot] c9d3cba845
chore(deps): bump actions/checkout from 2 to 2.3.4 (#4225)
Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 19:00:14 +08:00

28 lines
724 B
YAML

name: Cancelling Duplicates
on:
workflow_run:
workflows:
- 'CI'
- 'CI Centos7'
- 'Chaos Test'
- 'fuzzing'
types: ['requested']
jobs:
cancel-duplicate-workflow-runs:
name: "Cancel duplicate workflow runs"
runs-on: ubuntu-latest
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2.3.4
with:
submodules: recursive
- uses: ./.github/actions/cancel-workflow-runs
name: "Cancel duplicate workflow runs"
with:
cancelMode: allDuplicates
token: ${{ secrets.GITHUB_TOKEN }}
sourceRunId: ${{ github.event.workflow_run.id }}
skipEventTypes: '["push"]'