Skip to content

Commit

Permalink
Change release_type on release branch for testing workflow (#717)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ejguan committed Aug 5, 2022
1 parent fd648a4 commit 2ad811f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/_build_test_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ jobs:
elif [[ "${{ inputs.branch }}" == release/* ]] && [[ ${{ inputs.pre_dev_release }} == true ]]; then
RELEASE_TYPE=test
else
RELEASE_TYPE=nightly
if [[ "${{ github.base_ref }}" == release/* ]]; then
RELEASE_TYPE=test
else
RELEASE_TYPE=nightly
fi
fi
echo "Release Type: $RELEASE_TYPE"
echo "::set-output name=type::$RELEASE_TYPE"
Expand Down

0 comments on commit 2ad811f

Please sign in to comment.