Skip to content

Commit 428bd02

Browse files
ezio-melottihugovk
andauthored
[3.10] Auto-cancel old builds when new commit pushed to branch (GH-98009) (#98163)
* Auto-cancel old builds when new commit pushed to branch * Add a fallback Co-authored-by: Ezio Melotti <[email protected]> * Use the same group for all workflows. Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 75751f4) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent bf6b52e commit 428bd02

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
permissions:
2323
contents: read
2424

25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
27+
cancel-in-progress: true
28+
2529
jobs:
2630
check_source:
2731
name: 'Check for source changes'

.github/workflows/build_msi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
permissions:
2424
contents: read
2525

26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
28+
cancel-in-progress: true
29+
2630
jobs:
2731
build_win32:
2832
name: 'Windows (x86) Installer'

.github/workflows/doc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
permissions:
2424
contents: read
2525

26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
28+
cancel-in-progress: true
29+
2630
jobs:
2731
build_doc:
2832
name: 'Docs'

.github/workflows/verify-ensurepip-wheels.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
permissions:
1717
contents: read
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
verify:
2125
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)