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: