From 09ff5982f336cfb7830cfeedb253f70c2c49bb32 Mon Sep 17 00:00:00 2001 From: Ramakrishna Prabhu Date: Wed, 13 May 2026 10:46:42 -0500 Subject: [PATCH] ci: split build.yaml concurrency group by build_type Previously the concurrency group was keyed only on workflow + ref, so a push to main would cancel an in-progress nightly-dispatched build.yaml run on the same branch (and vice versa). Add the build_type input (with 'branch' as the fallback for push events) to the group key so nightly and branch builds occupy separate groups, while still cancelling older runs of the same type on the same ref. Co-Authored-By: Claude Opus 4.7 (1M context) Signed-off-by: Ramakrishna Prabhu --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 870244bbc2..3ac171263d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -39,7 +39,7 @@ on: default: false concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.build_type || 'branch' }} cancel-in-progress: true permissions: {}