diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 85507f5617..2a1d3dcafe 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -18,6 +18,10 @@ on: branches: [ master ] merge_group: +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: build: env: diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 28c8eccff1..133440b9a3 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -7,6 +7,10 @@ on: branches: [ master ] merge_group: +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: build: # The CMake configure and build commands are platform agnostic and should work equally diff --git a/.github/workflows/native-build.yml b/.github/workflows/native-build.yml index d6a0ff5d94..c9be9567de 100644 --- a/.github/workflows/native-build.yml +++ b/.github/workflows/native-build.yml @@ -7,6 +7,10 @@ on: branches: [ master ] merge_group: +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: build: # The CMake configure and build commands are platform-agnostic and should work equally diff --git a/.github/workflows/upload-sonarcloud.yml b/.github/workflows/upload-sonarcloud.yml index 34e3494aa3..27d2ba9288 100644 --- a/.github/workflows/upload-sonarcloud.yml +++ b/.github/workflows/upload-sonarcloud.yml @@ -22,12 +22,13 @@ on: types: - completed +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.workflow_run.pull_requests[0].url || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: upload: runs-on: ubuntu-22.04 - # Only run on successful pull requests. Merge commits to master upload - # their coverage reports directly inside `code-coverage.yml` - # TODO Also make this work for pushes to the master branch! if: github.event.workflow_run.conclusion == 'success' env: compiler: clang