We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3305ed5 commit 3a1eb23Copy full SHA for 3a1eb23
1 file changed
.github/workflows/auto-cancel.yml
@@ -0,0 +1,20 @@
1
+name: Cancelling
2
+on:
3
+ workflow_run:
4
+ workflows: ['CI', 'Docker']
5
+ types: ['requested']
6
+
7
+jobs:
8
+ cancel-duplicate-workflow-runs:
9
+ name: "Cancel duplicate workflow runs"
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: potiuk/cancel-workflow-runs@master
13
14
+ with:
15
+ cancelMode: duplicates
16
+ cancelFutureDuplicates: true
17
+ token: ${{ secrets.GITHUB_TOKEN }}
18
+ sourceRunId: ${{ github.event.workflow_run.id }}
19
+ notifyPRCancel: true
20
+ skipEventTypes: '["push", "schedule"]'
0 commit comments