Skip to content

Commit

Permalink
CI: Cancel existing builds when PR branch is updated
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Osterfeld <[email protected]>
  • Loading branch information
frankosterfeld committed Dec 6, 2024
1 parent 216bc26 commit a9a043e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
name: "${{ matrix.compiler.cc }} | ${{ matrix.cmake-build-type }}"
needs: buildAndPublishDocker
runs-on: "ubuntu-latest"
concurrency:
# Cancel running builds inside work (PR) branches
group: ${{ github.head_ref }}
cancel-on-progress: ${{ github.ref != 'refs/heads/main' }}
container:
image: "${{ needs.buildAndPublishDocker.outputs.container }}"
strategy:
Expand Down

0 comments on commit a9a043e

Please sign in to comment.