Skip to content

Commit 61b8f12

Browse files
authored
Cancel previous running workflows (#427)
1 parent f46d7cb commit 61b8f12

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/Cancel.yml

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

0 commit comments

Comments
 (0)