From 2297b4fa8f25a5c356bb34e992e3255ce47713c3 Mon Sep 17 00:00:00 2001 From: skylartaylor Date: Mon, 23 Nov 2026 21:23:08 +0100 Subject: [PATCH] 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. --- .github/workflows/nightly-macos.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly-macos.yml b/.github/workflows/nightly-macos.yml index 3e19ff823d..be5008ff53 100644 --- a/.github/workflows/nightly-macos.yml +++ b/.github/workflows/nightly-macos.yml @@ -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: