Skip to content

Commit 8dbca8b

Browse files
committed
Making sure we build correctly against release branch (#1790)
* Making sure we build correctly against release branch * prettier
1 parent b3b7a41 commit 8dbca8b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 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,12 @@ 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:
36+
${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref,
37+
'release') }}
38+
run: |
39+
echo "CHANNEL=test" >> "$GITHUB_ENV"
3340
- name: Build TorchText M1 wheel
3441
shell: arch -arch arm64 bash {0}
3542
env:

0 commit comments

Comments
 (0)