diff --git a/.github/workflows/health-check.yaml b/.github/workflows/health-check.yaml index 0ea2176982..f300d4e96a 100644 --- a/.github/workflows/health-check.yaml +++ b/.github/workflows/health-check.yaml @@ -16,14 +16,14 @@ concurrency: cancel-in-progress: true jobs: - label-check: - uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1 + require-label: + uses: autowarefoundation/autoware-github-actions/.github/workflows/require-label.yaml@v1 with: label: run:health-check docker-build: - needs: label-check - if: ${{ needs.label-check.outputs.result == 'true' || + needs: require-label + if: ${{ needs.require-label.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} strategy: diff --git a/.github/workflows/setup-universe.yaml b/.github/workflows/setup-universe.yaml index 5e84872f81..5edc0c2444 100644 --- a/.github/workflows/setup-universe.yaml +++ b/.github/workflows/setup-universe.yaml @@ -2,13 +2,25 @@ name: setup-universe on: pull_request: + types: + - opened + - synchronize + - reopened + - labeled concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} cancel-in-progress: true jobs: + require-label: + uses: autowarefoundation/autoware-github-actions/.github/workflows/require-label.yaml@v1 + with: + label: run:health-check + setup-universe: + needs: require-label + if: ${{ needs.require-label.outputs.result == 'true' }} runs-on: [self-hosted, Linux, X64] strategy: fail-fast: false