Skip to content

Commit 0c61ca8

Browse files
committed
cancel-in-progress CI runs
on feature branches when new CI run is triggered
1 parent 53cb8f0 commit 0c61ca8

File tree

6 files changed

+26
-3
lines changed

6 files changed

+26
-3
lines changed

.github/workflows/benchmark.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ on:
2020

2121
permissions: {}
2222

23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
26+
2327
jobs:
2428
build-bin:
2529
name: Build ${{ matrix.name }} binary

.github/workflows/binary-builds.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ env:
2424

2525
permissions: {}
2626

27-
jobs:
27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.ref }}
29+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2830

31+
jobs:
2932
create-assets:
3033
name: ${{ matrix.target }}
3134
strategy:

.github/workflows/build-docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ env:
2525

2626
permissions: {}
2727

28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.ref }}
30+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
31+
2832
jobs:
2933
cache-deps:
3034
runs-on: ubuntu-latest

.github/workflows/node-js-packaging.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ env:
3333

3434
permissions: {}
3535

36+
concurrency:
37+
group: ${{ github.workflow }}-${{ github.ref }}
38+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
39+
3640
jobs:
3741
build:
3842
strategy:

.github/workflows/python-packaging.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@ on:
3232
- .github/workflows/python-packaging.yml
3333
- pyproject.toml
3434

35-
permissions: {}
36-
3735
env:
3836
CARGO_TERM_COLOR: always
3937
RUST_BACKTRACE: 1
4038

39+
permissions: {}
40+
41+
concurrency:
42+
group: ${{ github.workflow }}-${{ github.ref }}
43+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
44+
4145
jobs:
4246
linux:
4347
runs-on: ${{ matrix.platform.runner }}

.github/workflows/run-dev-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ env:
2222

2323
permissions: {}
2424

25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
28+
2529
jobs:
2630
test:
2731
strategy:

0 commit comments

Comments
 (0)