CI: Prevent concurrent format jobs on same ref

This commit is contained in:
Geza Lore
2026-09-20 20:40:22 +01:00
parent 8f0bd99449
commit 77e9938188
+7
View File
@@ -15,6 +15,13 @@ defaults:
run:
working-directory: repo
concurrency:
# At most 1 run per branch: the job pushes what 'make format' changed, so
# concurrent runs on the same branch race on that push. Cancel the run in
# progress, as the newer one formats a tree that already holds its commits.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-24.04