Skip to content

Commit e78d142

Browse files
committed
ci: give the reusable test workflows distinct concurrency groups
When on_tag.yml calls build_test and build_test_mobile as reusable workflows, github.workflow resolves to the caller ("on_tag") for both, so their identical '${{ github.workflow }}-${{ github.ref }}' concurrency group collided and cancel-in-progress cancelled one of them (build_test_mobile), which then blocked the gated release jobs. Hardcode a per-workflow literal in the group so it stays distinct whether the workflow runs standalone (PR/push) or reused (tag).
1 parent 525e15c commit e78d142

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ env:
1515
SCCACHE_GHA_ENABLED: "true"
1616

1717
# When pushing new commits, cancel any workflows with the same name on that branch
18+
# Hardcode the workflow name (not ${{ github.workflow }}): when on_tag.yml calls this
19+
# as a reusable workflow, github.workflow becomes "on_tag" — shared with the other
20+
# reusable test workflow, so cancel-in-progress would cancel one of them. A literal
21+
# keeps the group distinct in both the standalone (PR/push) and reused (tag) cases.
1822
concurrency:
19-
group: ${{ github.workflow }}-${{ github.ref }}
23+
group: build_test-${{ github.ref }}
2024
cancel-in-progress: true
2125

2226
jobs:

.github/workflows/build_test_mobile.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ on:
2727
env:
2828
SCCACHE_GHA_ENABLED: "true"
2929

30+
# Hardcode the workflow name (not ${{ github.workflow }}): when on_tag.yml calls this
31+
# as a reusable workflow, github.workflow becomes "on_tag" — shared with build_test,
32+
# so cancel-in-progress would cancel one of them. A literal keeps the group distinct
33+
# in both the standalone (PR/push) and reused (tag) cases.
3034
concurrency:
31-
group: ${{ github.workflow }}-${{ github.ref }}
35+
group: build_test_mobile-${{ github.ref }}
3236
cancel-in-progress: true
3337

3438
jobs:

0 commit comments

Comments
 (0)