Skip to content

Commit a2cf6ff

Browse files
committed
Add concurrency settings to cancel in-progress CI builds
1 parent 0693a0c commit a2cf6ff

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
branches: [main]
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') }}
13+
1014
jobs:
1115
build_sdist:
1216
name: Build source distribution

.github/workflows/cicd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [main]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
test:
1115
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)