Skip to content

Commit 1a437a1

Browse files
committed
CI: a newer push cancels the runs it supersedes (not for tags)
1 parent 4e204ad commit 1a437a1

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
pull_request:
99
workflow_dispatch:
1010

11+
# A newer push to the same branch cancels the runs that it supersedes.
12+
concurrency:
13+
group: ci-${{ github.ref }}
14+
cancel-in-progress: true
15+
1116
jobs:
1217
test:
1318
strategy:

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ on:
1111
pull_request:
1212
workflow_dispatch:
1313

14+
# A newer push to the same branch cancels the runs that it supersedes; runs
15+
# for tags (releases) are never cancelled.
16+
concurrency:
17+
group: release-${{ github.ref }}
18+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') }}
19+
1420
env:
1521
SIMDJSON_VERSION: v5.0.7
1622

0 commit comments

Comments
 (0)