Skip to content

Commit 2ad811f

Browse files
committed
Change release_type on release branch for testing workflow (#717)
Summary: When `input_branch` is empty, the testing workflow should determine which PyTorch release type should be used for testing PR. You can find the testing result from the PR #716 Pull Request resolved: #717 Reviewed By: NivekT Differential Revision: D38436132 Pulled By: ejguan fbshipit-source-id: bfa9a5e2b23d03b378efdd4b0f996b32d6870e3a
1 parent fd648a4 commit 2ad811f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/_build_test_upload.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ jobs:
4343
elif [[ "${{ inputs.branch }}" == release/* ]] && [[ ${{ inputs.pre_dev_release }} == true ]]; then
4444
RELEASE_TYPE=test
4545
else
46-
RELEASE_TYPE=nightly
46+
if [[ "${{ github.base_ref }}" == release/* ]]; then
47+
RELEASE_TYPE=test
48+
else
49+
RELEASE_TYPE=nightly
50+
fi
4751
fi
4852
echo "Release Type: $RELEASE_TYPE"
4953
echo "::set-output name=type::$RELEASE_TYPE"

0 commit comments

Comments
 (0)