From 3ce140c54cb8669a144800fa08ee502d4be38162 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Wed, 10 Jul 2024 15:32:13 +0900 Subject: [PATCH 1/3] check tag Signed-off-by: Yutaka Kondo --- .github/workflows/health-check-self-hosted.yaml | 12 ++++++++++++ .github/workflows/health-check.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/health-check-self-hosted.yaml b/.github/workflows/health-check-self-hosted.yaml index d42be5c5f51..bec3811828e 100644 --- a/.github/workflows/health-check-self-hosted.yaml +++ b/.github/workflows/health-check-self-hosted.yaml @@ -1,12 +1,24 @@ name: health-check-self-hosted 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 uses: ./.github/workflows/load-env.yaml docker-build: diff --git a/.github/workflows/health-check.yaml b/.github/workflows/health-check.yaml index 5f75b1f52f5..043ae70708f 100644 --- a/.github/workflows/health-check.yaml +++ b/.github/workflows/health-check.yaml @@ -1,12 +1,24 @@ 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 uses: ./.github/workflows/load-env.yaml docker-build: From 188b0860a43c9808ca64eca43b03a50ea5b9f996 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Wed, 10 Jul 2024 15:33:58 +0900 Subject: [PATCH 2/3] run only github hosted runner Signed-off-by: Yutaka Kondo --- .github/workflows/health-check-self-hosted.yaml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/health-check-self-hosted.yaml b/.github/workflows/health-check-self-hosted.yaml index bec3811828e..d42be5c5f51 100644 --- a/.github/workflows/health-check-self-hosted.yaml +++ b/.github/workflows/health-check-self-hosted.yaml @@ -1,24 +1,12 @@ name: health-check-self-hosted 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 uses: ./.github/workflows/load-env.yaml docker-build: From e06dfef361a7f40fc036599a9f348cfca10100e3 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Wed, 10 Jul 2024 15:47:34 +0900 Subject: [PATCH 3/3] check result Signed-off-by: Yutaka Kondo --- .github/workflows/health-check.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/health-check.yaml b/.github/workflows/health-check.yaml index 043ae70708f..0fbd76375a7 100644 --- a/.github/workflows/health-check.yaml +++ b/.github/workflows/health-check.yaml @@ -19,6 +19,7 @@ jobs: load-env: needs: label-check + if: ${{ needs.label-check.outputs.result == 'true' }} uses: ./.github/workflows/load-env.yaml docker-build: