mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-14 17:01:20 +08:00
28 lines
720 B
YAML
28 lines
720 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
|
||
|
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"]'
|