Skip to content

Commit 9fbbf20

Browse files
authored
fix(ci): run label triggered workflows in their own group (#15277)
1 parent b2c474f commit 9fbbf20

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docker-unified.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ concurrency:
2222
# Using `github.run_id` (unique val) instead of `github.ref` here
2323
# because we don't want to cancel this workflow on master only for PRs
2424
# as that makes reproducing issues easier
25-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
25+
# Adding github.event.action == labeled as a means to differentiate the trigger due to adding a label -- most labels are
26+
# no-ops except for `depot`
27+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}-${{ github.event.action == 'labeled' }}
2628
cancel-in-progress: true
2729

2830
env:
@@ -442,7 +444,7 @@ jobs:
442444
strategy:
443445
fail-fast: false
444446
matrix: ${{ fromJson(needs.smoke_test_matrix.outputs.matrix) }}
445-
if: ${{ always() && !failure() && !cancelled() && needs.smoke_test_matrix.outputs.matrix != '[]' }}
447+
if: ${{ needs.smoke_test_matrix.outputs.matrix != '[]' }}
446448
env:
447449
# TODO Chakru: Review if required
448450
MIXPANEL_API_SECRET: ${{ secrets.MIXPANEL_API_SECRET }}

0 commit comments

Comments
 (0)