Commit 6b152cb1 authored by Andrey Talman's avatar Andrey Talman Committed by Facebook GitHub Bot
Browse files

Fix push on release reference name (#2492)

Summary:
Fix push on release reference name
We want to compare it against refs/heads/release rather then release
Tests: https://github.com/atalman/vision/commit/af17cd95d2d43ca13354fb700e2da42108dd5a87
Sets correctly release chanell (wheels): https://github.com/atalman/vision/runs/6901327010?check_suite_focus=true

Pull Request resolved: https://github.com/pytorch/audio/pull/2492

Reviewed By: hwangjeff

Differential Revision: D37174090

Pulled By: atalman

fbshipit-source-id: e114972935572a701eb7daff429a0df0ed5a75e4
parent 722982ea
...@@ -32,7 +32,7 @@ jobs: ...@@ -32,7 +32,7 @@ jobs:
echo "CHANNEL=test" >> "$GITHUB_ENV" echo "CHANNEL=test" >> "$GITHUB_ENV"
fi fi
- name: Set Release CHANNEL (for release) - name: Set Release CHANNEL (for release)
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }} if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
run: | run: |
echo "CHANNEL=test" >> "$GITHUB_ENV" echo "CHANNEL=test" >> "$GITHUB_ENV"
- name: Build TorchAudio M1 wheel - name: Build TorchAudio M1 wheel
...@@ -114,7 +114,7 @@ jobs: ...@@ -114,7 +114,7 @@ jobs:
echo "CHANNEL=test" >> "$GITHUB_ENV" echo "CHANNEL=test" >> "$GITHUB_ENV"
fi fi
- name: Set Release CHANNEL (for release) - name: Set Release CHANNEL (for release)
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }} if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
run: | run: |
echo "CHANNEL=test" >> "$GITHUB_ENV" echo "CHANNEL=test" >> "$GITHUB_ENV"
- name: Install conda-build and purge previous artifacts - name: Install conda-build and purge previous artifacts
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment