Keep unlabelled events out of the macOS build's concurrency group

A push to a full-ci PR and the label event arrive together; the event that would be skipped
was sharing the group and cancelling the real build.
This commit is contained in:
skylartaylor committed 2026-11-23 21:23:08 +01:00
1 parent df3345c164
commit 2297b4fa8f
1 file changed
+3 -3
+3 -3
View File
@@ -15,10 +15,10 @@ on:
permissions:
contents: read
# As ci.yml: a newer push to a labelled PR cancels its older run; adding any label but `full-ci`
# gets a group of its own, so it neither runs anything nor cancels a run.
# A newer push to a labelled PR cancels its older run. Any event that will not build (no `full-ci`
# label, or another label added) gets a group of its own, so it never cancels a real build.
concurrency:
group: nightly-macos-${{ github.event_name == 'pull_request' && (github.event.action != 'labeled' || github.event.label.name == 'full-ci') && github.ref || github.run_id }}
group: nightly-macos-${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'full-ci') && (github.event.action != 'labeled' || github.event.label.name == 'full-ci') && github.ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs: