From eca706a5e1b303f28c4c0e9e0ff4c00a17716c1d Mon Sep 17 00:00:00 2001 From: Ihor Solodrai Date: Wed, 11 Mar 2026 17:14:43 -0700 Subject: [PATCH] ci: fix concurrency group for push and schedule triggers github.head_ref is empty for push and schedule events, so all those runs shared the same concurrency group and cancelled each other. Fall back to github.run_id to give each non-PR run a unique group. Assisted-by: Claude:claude-opus-4-6 Signed-off-by: Ihor Solodrai --- .github/workflows/build.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 506bb3e..48fece1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: - cron: '0 18 * * *' concurrency: - group: ci-build-${{ github.head_ref }} + group: ci-build-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d802865..94bd03f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ on: - cron: '0 18 * * *' concurrency: - group: ci-test-${{ github.head_ref }} + group: ci-test-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: