From 4c30dad338c8af14f707cffb3e6eb6b3f703f180 Mon Sep 17 00:00:00 2001 From: Guoshuai Zhao Date: Wed, 18 Sep 2024 10:59:41 +0800 Subject: [PATCH] Need approval before run the pipeline. --- .github/workflows/build-image.yaml | 1 + .github/workflows/unit-tests.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 90d7b7e6..26c64dc8 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -13,6 +13,7 @@ on: jobs: docker: + if: github.event.review.state == 'approved' name: Docker build ${{ matrix.name }} runs-on: [self-hosted, linux, x64, gpu] timeout-minutes: 600 diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index fae3a106..3b31c157 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -8,6 +8,7 @@ on: jobs: unit-tests: + if: github.event.review.state == 'approved' name: Build and test with torch-${{ matrix.torch }} runs-on: [self-hosted, linux, x64, gpu] strategy: