Skip to content

Commit d1b2f4a

Browse files
authored
Fix push on release reference name (#6170)
1 parent bbc1aac commit d1b2f4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
echo "CHANNEL=test" >> "$GITHUB_ENV"
3434
fi
3535
- name: Set Release CHANNEL (for release)
36-
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
36+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
3737
run: |
3838
echo "CHANNEL=test" >> "$GITHUB_ENV"
3939
- name: Build TorchVision M1 wheel
@@ -110,7 +110,7 @@ jobs:
110110
echo "CHANNEL=test" >> "$GITHUB_ENV"
111111
fi
112112
- name: Set CHANNEL Release (for release)
113-
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
113+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
114114
run: |
115115
echo "CHANNEL=test" >> "$GITHUB_ENV"
116116
- name: Install conda-build and purge previous artifacts

.github/workflows/test-m1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Checkout repository
2424
uses: actions/checkout@v2
2525
- name: Set Release CHANNEL (for release)
26-
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
26+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
2727
run: |
2828
echo "CHANNEL=test" >> "$GITHUB_ENV"
2929
- name: Install TorchVision

0 commit comments

Comments
 (0)