Skip to content

Commit 24369f0

Browse files
committed
Fix cancelling in-progress build on new changes
1 parent 1bf9577 commit 24369f0

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/linuxbrew.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: linuxbrew
22
on: [push, pull_request]
33
concurrency:
4-
group: ${{ github.workflow }}-${{ github.ref }}
5-
cancel-in-progress: true
4+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
5+
cancel-in-progress: ${{ github.ref_name != 'master' }}
66
jobs:
77
linuxbrew:
88
runs-on: ubuntu-latest

.github/workflows/macosx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: macOS
22
on: [push, pull_request]
33
concurrency:
4-
group: ${{ github.workflow }}-${{ github.ref }}
5-
cancel-in-progress: true
4+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
5+
cancel-in-progress: ${{ github.ref_name != 'master' }}
66
jobs:
77
macosx:
88
runs-on: macos-latest

.github/workflows/manylinux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: manylinux
22
on: [push, pull_request]
33
concurrency:
4-
group: ${{ github.workflow }}-${{ github.ref }}
5-
cancel-in-progress: true
4+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
5+
cancel-in-progress: ${{ github.ref_name != 'master' }}
66
jobs:
77
manylinux:
88
runs-on: ubuntu-latest

.github/workflows/sdist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: sdist
22
on: [push, pull_request]
33
concurrency:
4-
group: ${{ github.workflow }}-${{ github.ref }}
5-
cancel-in-progress: true
4+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
5+
cancel-in-progress: ${{ github.ref_name != 'master' }}
66
jobs:
77
sdist:
88
# Avoid Ubuntu 24.04 in sdist workflows, because it contains libxmlsec1-dev

.github/workflows/wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ on:
1616
workflow_dispatch:
1717

1818
concurrency:
19-
group: ${{ github.workflow }}-${{ github.ref }}
20-
cancel-in-progress: true
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
20+
cancel-in-progress: ${{ github.ref_name != 'master' }}
2121

2222
permissions: {}
2323

0 commit comments

Comments
 (0)