Skip to content

Commit

Permalink
Make sure tests are executed on pull and on push to release but not t…
Browse files Browse the repository at this point in the history
…ag (#6169)
  • Loading branch information
atalman committed Jun 15, 2022
1 parent 94c81c2 commit 61ecd18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test-m1.yml
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 61ecd18

Please sign in to comment.