From 753e26a1312b5b318ae8bb976e1443428afda21a Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 10 May 2026 20:20:27 +0200 Subject: [PATCH] ci: cancel in-progress Test and Build runs on PR update When a contributor pushes a new commit to an open PR, the previous Test and Build run is no longer informative and only consumes a runner slot that the new run could use. Add a concurrency group keyed on the workflow name and ref so a fresh push cancels the prior in-progress run for the same PR. Since this workflow only triggers on pull_request, the ref is always refs/pull//merge (unique per PR), so cancel-in-progress can be set unconditionally. Co-Authored-By: Claude Opus 4.7 (1M context) Signed-off-by: Hauke Mehrtens --- .github/workflows/multi-arch-test-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml index a56d95b174..ce7910bb8a 100644 --- a/.github/workflows/multi-arch-test-build.yml +++ b/.github/workflows/multi-arch-test-build.yml @@ -7,6 +7,10 @@ permissions: contents: read pull-requests: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: formalities: name: Test Formalities