ci: cancel in-progress Test and Build runs on PR update
authorHauke Mehrtens <redacted>
Sun, 10 May 2026 18:20:27 +0000 (20:20 +0200)
committerHauke Mehrtens <redacted>
Sun, 10 May 2026 23:30:20 +0000 (01:30 +0200)
commit753e26a1312b5b318ae8bb976e1443428afda21a
tree3e8b123ed9877f04327a8c35ec819426429fd1f0
parent5b591156ce9c17a34f63188f4fb02b715b33eac3
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/<num>/merge (unique per PR), so cancel-in-progress
can be set unconditionally.

Co-Authored-By: Claude Opus 4.7 (1M context) <redacted>
Signed-off-by: Hauke Mehrtens <redacted>
.github/workflows/multi-arch-test-build.yml
git clone https://git.99rst.org/PROJECT