Skip to content

Commit 722982e

Browse files
atalmanfacebook-github-bot
authored andcommitted
Making sure we are picking correct release branch (#2489)
Summary: Making sure we are picking correct release branch Ref: pytorch/vision#6168 Pull Request resolved: #2489 Reviewed By: mthrok Differential Revision: D37160145 Pulled By: atalman fbshipit-source-id: 3e4a2208cbe47f85147573159f9adb8d6a824956
1 parent 575478e commit 722982e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-m1-binaries.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- nightly
9+
- release/*
910
tags:
1011
# NOTE: Binary build pipelines should only get triggered on release candidate builds
1112
# Release candidate tags look like: v1.11.0-rc1
@@ -30,6 +31,10 @@ jobs:
3031
if [[ ${GITHUB_REF_NAME} = *-rc[0-9]* ]]; then
3132
echo "CHANNEL=test" >> "$GITHUB_ENV"
3233
fi
34+
- name: Set Release CHANNEL (for release)
35+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
36+
run: |
37+
echo "CHANNEL=test" >> "$GITHUB_ENV"
3338
- name: Build TorchAudio M1 wheel
3439
shell: arch -arch arm64 bash {0}
3540
env:
@@ -108,6 +113,10 @@ jobs:
108113
if [[ ${GITHUB_REF_NAME} = *-rc[0-9]* ]]; then
109114
echo "CHANNEL=test" >> "$GITHUB_ENV"
110115
fi
116+
- name: Set Release CHANNEL (for release)
117+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
118+
run: |
119+
echo "CHANNEL=test" >> "$GITHUB_ENV"
111120
- name: Install conda-build and purge previous artifacts
112121
shell: arch -arch arm64 bash {0}
113122
run: |

0 commit comments

Comments
 (0)