Skip to content

Commit c8439a9

Browse files
committed
ci: gate setup-universe behind run:health-check, unify label reusable
- Put setup-universe behind the same `run:health-check` label the docker-new health-check workflow uses. setup-universe runs the setup-dev-env.sh script on a self-hosted runner, so triggering it on every PR is expensive; a single label now toggles both heavyweight pre-merge checks together. - Switch health-check from `make-sure-label-is-present.yaml@v1` to `require-label.yaml@v1`, matching the sub-repo build-and-test workflows and the new setup-universe gate. Also drops an unused `load: false` in the bake step (false is the default). Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
1 parent 3f0d5c9 commit c8439a9

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/health-check.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
jobs:
19-
label-check:
20-
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
19+
require-label:
20+
uses: autowarefoundation/autoware-github-actions/.github/workflows/require-label.yaml@v1
2121
with:
2222
label: run:health-check
2323

2424
docker-build:
25-
needs: label-check
26-
if: ${{ needs.label-check.outputs.result == 'true' ||
25+
needs: require-label
26+
if: ${{ needs.require-label.outputs.result == 'true' ||
2727
github.event_name == 'schedule' ||
2828
github.event_name == 'workflow_dispatch' }}
2929
strategy:

.github/workflows/setup-universe.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,25 @@ name: setup-universe
22

33
on:
44
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
510

611
concurrency:
712
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
813
cancel-in-progress: true
914

1015
jobs:
16+
require-label:
17+
uses: autowarefoundation/autoware-github-actions/.github/workflows/require-label.yaml@v1
18+
with:
19+
label: run:health-check
20+
1121
setup-universe:
22+
needs: require-label
23+
if: ${{ needs.require-label.outputs.result == 'true' }}
1224
runs-on: [self-hosted, Linux, X64]
1325
strategy:
1426
fail-fast: false

0 commit comments

Comments
 (0)