From 2ad811f5f2801719df5c02b68f506855ea240057 Mon Sep 17 00:00:00 2001 From: Erjia Guan Date: Thu, 4 Aug 2022 14:59:49 -0700 Subject: [PATCH] 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 https://github.com/pytorch/data/issues/716 Pull Request resolved: https://github.com/pytorch/data/pull/717 Reviewed By: NivekT Differential Revision: D38436132 Pulled By: ejguan fbshipit-source-id: bfa9a5e2b23d03b378efdd4b0f996b32d6870e3a --- .github/workflows/_build_test_upload.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_build_test_upload.yml b/.github/workflows/_build_test_upload.yml index e555e25f0..b6290a06d 100644 --- a/.github/workflows/_build_test_upload.yml +++ b/.github/workflows/_build_test_upload.yml @@ -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"