From 2ab3b24d9735b9a98dd2703e41fe04b022ec36f5 Mon Sep 17 00:00:00 2001 From: atalman Date: Wed, 15 Jun 2022 05:35:26 -0700 Subject: [PATCH] Make sure tests are executed on pull and on push to release but not tag --- .github/workflows/test-m1.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/test-m1.yml b/.github/workflows/test-m1.yml index 6b05d67a196..972e0d3df47 100644 --- a/.github/workflows/test-m1.yml +++ b/.github/workflows/test-m1.yml @@ -8,10 +8,6 @@ on: - nightly - main - release/* - tags: - # NOTE: Binary build pipelines should only get triggered on release candidate builds - # Release candidate tags look like: v1.11.0-rc1 - - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ workflow_dispatch: env: CHANNEL: "nightly" @@ -34,7 +30,7 @@ jobs: echo "CHANNEL=test" >> "$GITHUB_ENV" fi - name: Set Release CHANNEL (for release) - if: ${{ github.event_name == 'pull_request' && startsWith(github.base_ref, 'release') }} + if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }} run: | echo "CHANNEL=test" >> "$GITHUB_ENV" - name: Install TorchVision