Skip to content

Commit 802f60c

Browse files
committed
Auto-cancel workflows when pushing to a branch
1 parent 3f18bfc commit 802f60c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/cancel.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2+
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
3+
4+
# This action finds in-progress Action jobs for the same branch, and cancels
5+
# them. There's little point in continuing to run superceded jobs.
6+
7+
name: Cancel
8+
9+
on:
10+
push:
11+
12+
jobs:
13+
cancel:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Cancel Previous Runs
17+
uses: styfle/[email protected]
18+
with:
19+
access_token: ${{ github.token }}
20+
workflow_id: coverage.yml, kit.yml, quality.yml, testsuite.yml

0 commit comments

Comments
 (0)