diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f5bf4c09670..0aa99e3bcc7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -10,6 +10,10 @@ on: permissions: read-all +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 198cb7ca85b..a507e48e463 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -7,6 +7,10 @@ on: permissions: read-all +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true + jobs: check: name: Check if release commit diff --git a/.github/workflows/integration-darwin.yml b/.github/workflows/integration-darwin.yml index 4000497f166..23386633393 100644 --- a/.github/workflows/integration-darwin.yml +++ b/.github/workflows/integration-darwin.yml @@ -5,6 +5,10 @@ on: [push, pull_request] permissions: read-all +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/integration-linux.yml b/.github/workflows/integration-linux.yml index dfbd10f9f1f..64429abeca6 100644 --- a/.github/workflows/integration-linux.yml +++ b/.github/workflows/integration-linux.yml @@ -5,6 +5,10 @@ on: [push, pull_request] permissions: read-all +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/integration-windows.yml b/.github/workflows/integration-windows.yml index ccf8e9c73a9..66bebafa54d 100644 --- a/.github/workflows/integration-windows.yml +++ b/.github/workflows/integration-windows.yml @@ -5,6 +5,10 @@ on: [push, pull_request] permissions: read-all +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/linters-checks-and-unit-tests-linux.yml b/.github/workflows/linters-checks-and-unit-tests-linux.yml index 5525df83aef..870e4877d28 100644 --- a/.github/workflows/linters-checks-and-unit-tests-linux.yml +++ b/.github/workflows/linters-checks-and-unit-tests-linux.yml @@ -5,6 +5,10 @@ on: [push, pull_request] permissions: read-all +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/performance-comparison-label.yml b/.github/workflows/performance-comparison-label.yml index bd6b1502c9c..1b8f47e57a4 100644 --- a/.github/workflows/performance-comparison-label.yml +++ b/.github/workflows/performance-comparison-label.yml @@ -8,6 +8,10 @@ permissions: pull-requests: write issues: write +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true + jobs: build: if: ${{ github.event.label.name == 'help:run-comparisonstats' }} diff --git a/.github/workflows/performance-comparison.yml b/.github/workflows/performance-comparison.yml index ee806db4c04..4d9dbbc1547 100644 --- a/.github/workflows/performance-comparison.yml +++ b/.github/workflows/performance-comparison.yml @@ -8,6 +8,10 @@ permissions: contents: read pull-requests: write +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true + jobs: build: if: ${{ startsWith(github.event.comment.body, '/run-comparisonstats') }} diff --git a/.github/workflows/unit-tests-darwin.yml b/.github/workflows/unit-tests-darwin.yml index 6386b8348cc..ee2022cecca 100644 --- a/.github/workflows/unit-tests-darwin.yml +++ b/.github/workflows/unit-tests-darwin.yml @@ -5,6 +5,9 @@ on: [push, pull_request] permissions: read-all +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true jobs: build: diff --git a/.github/workflows/verify-examples.yml b/.github/workflows/verify-examples.yml index 457ea2e890a..646ffbb0934 100644 --- a/.github/workflows/verify-examples.yml +++ b/.github/workflows/verify-examples.yml @@ -3,6 +3,10 @@ name: Verify examples # Triggers the workflow on push or pull request events on: [pull_request] +concurrency: + group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}} + cancel-in-progress: true + jobs: dependabot: name: Verify changes to examples