From 7ec614ed3b21e4e0676b96d0dbf9b80c8a2fad7a Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Thu, 11 Jul 2024 15:24:21 +0900 Subject: [PATCH] feat(ci): make sure `tag:run-health-check` tag is present on PR to run `health-check` CI (#4962) * check tag Signed-off-by: Yutaka Kondo * run only github hosted runner Signed-off-by: Yutaka Kondo * check result Signed-off-by: Yutaka Kondo --------- Signed-off-by: Yutaka Kondo --- .github/workflows/health-check.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/health-check.yaml b/.github/workflows/health-check.yaml index 5f75b1f52f5..0fbd76375a7 100644 --- a/.github/workflows/health-check.yaml +++ b/.github/workflows/health-check.yaml @@ -1,12 +1,25 @@ name: health-check on: + pull_request: + types: + - opened + - synchronize + - reopened + - labeled schedule: - cron: 0 12 * * * workflow_dispatch: jobs: + label-check: + uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1 + with: + label: tag:run-health-check + load-env: + needs: label-check + if: ${{ needs.label-check.outputs.result == 'true' }} uses: ./.github/workflows/load-env.yaml docker-build: