summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-10 20:16:32 (GMT)
committerGitHub <noreply@github.com>2022-10-10 20:16:32 (GMT)
commit9d44ca51830ea1ead1e6e5641f9dc22fa108e2dc (patch)
treee7d2cc62fea06713428a4916c84a2389e05d0c34 /.github
parent5c0d4c261972b7be6099c944d058847685f25033 (diff)
downloadcpython-9d44ca51830ea1ead1e6e5641f9dc22fa108e2dc.zip
cpython-9d44ca51830ea1ead1e6e5641f9dc22fa108e2dc.tar.gz
cpython-9d44ca51830ea1ead1e6e5641f9dc22fa108e2dc.tar.bz2
Auto-cancel old builds when new commit pushed to branch (GH-98009)
* 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>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml4
-rw-r--r--.github/workflows/build_msi.yml4
-rw-r--r--.github/workflows/doc.yml4
-rw-r--r--.github/workflows/verify-ensurepip-wheels.yml4
4 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3576eff..8a53583 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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'
diff --git a/.github/workflows/build_msi.yml b/.github/workflows/build_msi.yml
index 6044ae0..5243dbb 100644
--- a/.github/workflows/build_msi.yml
+++ b/.github/workflows/build_msi.yml
@@ -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'
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index e06f216..af5c5d0 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -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'
diff --git a/.github/workflows/verify-ensurepip-wheels.yml b/.github/workflows/verify-ensurepip-wheels.yml
index 61e3d1a..9f4754f 100644
--- a/.github/workflows/verify-ensurepip-wheels.yml
+++ b/.github/workflows/verify-ensurepip-wheels.yml
@@ -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