Skip to content

Commit 3b83889

Browse files
authored
Automatically cancel in-progress CI runs of old commits (#544)
1 parent bdc51d7 commit 3b83889

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
PYTHON: ${{ matrix.python-version }}
5151

5252
steps:
53+
# Cancel previous runs that are not completed
54+
- name: Cancel Previous Runs
55+
uses: styfle/[email protected]
56+
with:
57+
access_token: ${{ github.token }}
58+
5359
# Checkout current git repository
5460
- name: Checkout
5561
uses: actions/[email protected]

.github/workflows/ci_tests_dev.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
shell: bash -l {0}
3131

3232
steps:
33+
# Cancel previous runs that are not completed
34+
- name: Cancel Previous Runs
35+
uses: styfle/[email protected]
36+
with:
37+
access_token: ${{ github.token }}
38+
3339
# Checkout current git repository
3440
- name: Checkout
3541
uses: actions/[email protected]

0 commit comments

Comments
 (0)