Skip to content
Snippets Groups Projects
Unverified Commit 428bd028 authored by Ezio Melotti's avatar Ezio Melotti Committed by GitHub
Browse files

[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: default avatarEzio Melotti <ezio.melotti@gmail.com>

* Use the same group for all workflows.

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

Co-authored-by: default avatarHugo van Kemenade <hugovk@users.noreply.github.com>

Co-authored-by: default avatarHugo van Kemenade <hugovk@users.noreply.github.com>
parent bf6b52eb
Branches
Tags
No related merge requests found
...@@ -22,6 +22,10 @@ on: ...@@ -22,6 +22,10 @@ on:
permissions: permissions:
contents: read contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: jobs:
check_source: check_source:
name: 'Check for source changes' name: 'Check for source changes'
......
...@@ -23,6 +23,10 @@ on: ...@@ -23,6 +23,10 @@ on:
permissions: permissions:
contents: read contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: jobs:
build_win32: build_win32:
name: 'Windows (x86) Installer' name: 'Windows (x86) Installer'
......
...@@ -23,6 +23,10 @@ on: ...@@ -23,6 +23,10 @@ on:
permissions: permissions:
contents: read contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: jobs:
build_doc: build_doc:
name: 'Docs' name: 'Docs'
......
...@@ -16,6 +16,10 @@ on: ...@@ -16,6 +16,10 @@ on:
permissions: permissions:
contents: read contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: jobs:
verify: verify:
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment