Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 3a1eb23

Browse files
committed
GHA: add auto-concel workflow
1 parent 3305ed5 commit 3a1eb23

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/auto-cancel.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
name: "Cancel duplicate workflow runs"
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

Comments
 (0)