Skip to content

Commit ea99d69

Browse files
committed
Fix push on release reference name (pytorch#2492)
Summary: Fix push on release reference name We want to compare it against refs/heads/release rather then release Tests: atalman/vision@af17cd9 Sets correctly release chanell (wheels): https://github.com/atalman/vision/runs/6901327010?check_suite_focus=true Pull Request resolved: pytorch#2492 Reviewed By: hwangjeff Differential Revision: D37174090 Pulled By: atalman fbshipit-source-id: e114972935572a701eb7daff429a0df0ed5a75e4
1 parent 1edbcea commit ea99d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
echo "CHANNEL=test" >> "$GITHUB_ENV"
3333
fi
3434
- name: Set Release CHANNEL (for release)
35-
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
35+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
3636
run: |
3737
echo "CHANNEL=test" >> "$GITHUB_ENV"
3838
- name: Build TorchAudio M1 wheel
@@ -114,7 +114,7 @@ jobs:
114114
echo "CHANNEL=test" >> "$GITHUB_ENV"
115115
fi
116116
- name: Set Release CHANNEL (for release)
117-
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
117+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
118118
run: |
119119
echo "CHANNEL=test" >> "$GITHUB_ENV"
120120
- name: Install conda-build and purge previous artifacts

0 commit comments

Comments
 (0)