From 37d259f942103945ac8344a1abd0fbfb21fd5927 Mon Sep 17 00:00:00 2001 From: Frank Osterfeld Date: Fri, 6 Dec 2024 16:29:23 +0100 Subject: [PATCH] CI: Cancel existing builds when PR branch is updated --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4eebe92..8706e2d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,9 @@ jobs: name: "${{ matrix.compiler.cc }} | ${{ matrix.cmake-build-type }}" needs: buildAndPublishDocker runs-on: "ubuntu-latest" + concurrency: + group: ${{ github.head_ref }} # Unique group identifier for branch + cancel-in-progress: true # Cancel any in-progress runs for the same branch container: image: "${{ needs.buildAndPublishDocker.outputs.container }}" strategy: