Skip to content

Commit 75b0d25

Browse files
authored
Cancel previous running workflows on push (#292)
1 parent 1dd0378 commit 75b0d25

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/Cancel.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Cancel
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- "CI"
7+
- "Documentation"
8+
- "Format suggestions"
9+
types:
10+
- requested
11+
12+
jobs:
13+
cancel:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: styfle/[email protected]
17+
with:
18+
workflow_id: ${{ github.event.workflow.id }}

0 commit comments

Comments
 (0)