Skip to content

Commit 61ecd18

Browse files
authored
Make sure tests are executed on pull and on push to release but not tag (#6169)
1 parent 94c81c2 commit 61ecd18

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/test-m1.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
- nightly
99
- main
1010
- release/*
11-
tags:
12-
# NOTE: Binary build pipelines should only get triggered on release candidate builds
13-
# Release candidate tags look like: v1.11.0-rc1
14-
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
1511
workflow_dispatch:
1612
env:
1713
CHANNEL: "nightly"
@@ -34,7 +30,7 @@ jobs:
3430
echo "CHANNEL=test" >> "$GITHUB_ENV"
3531
fi
3632
- name: Set Release CHANNEL (for release)
37-
if: ${{ github.event_name == 'pull_request' && startsWith(github.base_ref, 'release') }}
33+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
3834
run: |
3935
echo "CHANNEL=test" >> "$GITHUB_ENV"
4036
- name: Install TorchVision

0 commit comments

Comments
 (0)