CI: canceling previous workflow runs (#3078)
parent
553535e4e3
commit
fad8612405
@ -0,0 +1,17 @@
|
|||||||
|
name: Cancelling Duplicates
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ['CI']
|
||||||
|
types: ['requested']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cancel-duplicate-workflow-runs:
|
||||||
|
name: "Cancel duplicate workflow runs"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: potiuk/cancel-workflow-runs@master
|
||||||
|
name: "Cancel duplicate workflow runs"
|
||||||
|
with:
|
||||||
|
cancelMode: duplicates
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
sourceRunId: ${{ github.event.workflow_run.id }}
|
||||||
Loading…
Reference in New Issue