]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] Auto-cancel old builds when new commit pushed to branch (GH-98009) (#98163)
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 10 Oct 2022 20:26:38 +0000 (22:26 +0200)
committerGitHub <noreply@github.com>
Mon, 10 Oct 2022 20:26:38 +0000 (22:26 +0200)
* Auto-cancel old builds when new commit pushed to branch

* Add a fallback

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* Use the same group for all workflows.

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 75751f4aa5d70f65856645a9128fd42d92d6692c)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
.github/workflows/build.yml
.github/workflows/build_msi.yml
.github/workflows/doc.yml
.github/workflows/verify-ensurepip-wheels.yml

index c0744ce5033f3e2043c505ad6cdbc60fb5cd66e8..ba23c72586d49ea54f0adabfc8222cfde142e782 100644 (file)
@@ -22,6 +22,10 @@ on:
 permissions:
   contents: read
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   check_source:
     name: 'Check for source changes'
index 04917ff184aa6420b4ffbcf32dcedb9bd1ddaed6..0eba92e1c844385baae0ef45c093b211af92f13b 100644 (file)
@@ -23,6 +23,10 @@ on:
 permissions:
   contents: read
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   build_win32:
     name: 'Windows (x86) Installer'
index eb4884a487325ac5119374d8b8c23eaaf585b7ad..3bc280be95f31e92620583a350cf4ed9a604ca58 100644 (file)
@@ -23,6 +23,10 @@ on:
 permissions:
   contents: read
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   build_doc:
     name: 'Docs'
index 61e3d1adf534d54b5d5ebbef7196c37ca4ad14cc..9f4754f912b09f6257caac0a9bb2093752b5e952 100644 (file)
@@ -16,6 +16,10 @@ on:
 permissions:
   contents: read
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   verify:
     runs-on: ubuntu-latest