]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Auto-cancel old builds when new commit pushed to branch (GH-98009)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 10 Oct 2022 20:16:32 +0000 (13:16 -0700)
committerGitHub <noreply@github.com>
Mon, 10 Oct 2022 20:16:32 +0000 (13:16 -0700)
* 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>
.github/workflows/build.yml
.github/workflows/build_msi.yml
.github/workflows/doc.yml
.github/workflows/verify-ensurepip-wheels.yml

index 3576eff6e352ba88a6e769ad8d2ea6556acb3054..8a535831a6054d84cfde360e038333b9c7787999 100644 (file)
@@ -25,6 +25,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 6044ae0f7c29b404f7a2aec5f7591b724022fef4..5243dbba5f6b3a77f9c7a80225465ebd6ed0b504 100644 (file)
@@ -26,6 +26,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 e06f21671b5a5a7bc38157cfafc7a16064e1a000..af5c5d0ad2e209eaeb18dd66824d0f9e0bb4d107 100644 (file)
@@ -28,6 +28,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