diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-10 20:16:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 20:16:32 (GMT) |
commit | 9d44ca51830ea1ead1e6e5641f9dc22fa108e2dc (patch) | |
tree | e7d2cc62fea06713428a4916c84a2389e05d0c34 /.github | |
parent | 5c0d4c261972b7be6099c944d058847685f25033 (diff) | |
download | cpython-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.yml | 4 | ||||
-rw-r--r-- | .github/workflows/build_msi.yml | 4 | ||||
-rw-r--r-- | .github/workflows/doc.yml | 4 | ||||
-rw-r--r-- | .github/workflows/verify-ensurepip-wheels.yml | 4 |
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 |