Skip to content

Commit 4906d22

Browse files
fix(ci): rerun release dependency check on label (#10955)
* ci: run check-no-git-dependencies when A-release label is added late The check-no-git-dependencies job in tests-unit.yml is gated on the A-release label, but that workflow's pull_request trigger uses the default activity types (opened, synchronize, reopened). Adding the label to an existing PR therefore does not re-run it, so the check stays skipped until the next push. Add a dedicated workflow that triggers only on the labeled event and runs the same check, avoiding a full unit-test re-run on every label change. * ci: clarify workflow comment about label-triggered runs * fix(ci): reuse unit workflow for release labels --------- Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
1 parent f973a31 commit 4906d22

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/tests-unit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Unit Tests
33
on:
44
pull_request:
55
branches: [main]
6+
types: [opened, synchronize, reopened, labeled]
67
push:
78
branches: [main]
89
merge_group:
@@ -27,6 +28,7 @@ env:
2728

2829
jobs:
2930
changes:
31+
if: github.event.action != 'labeled' || github.event.label.name == 'A-release'
3032
runs-on: ubuntu-latest
3133
timeout-minutes: 5
3234
outputs:
@@ -97,7 +99,10 @@ jobs:
9799

98100
unit-tests:
99101
runs-on: ubuntu-latest
100-
if: always()
102+
if: >-
103+
always() &&
104+
(github.event.action != 'labeled' ||
105+
github.event.label.name == 'A-release')
101106
needs:
102107
- changes
103108
- run-unit-tests

0 commit comments

Comments
 (0)