From 8b913a236566f193543cb09a3139d7ac78bfe88f Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 28 Dec 2023 13:59:13 -0800 Subject: [PATCH] Add test ops validation for validation workflows --- .github/scripts/validate_test_ops.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/validate_test_ops.sh b/.github/scripts/validate_test_ops.sh index 547b7340b..bd724394b 100644 --- a/.github/scripts/validate_test_ops.sh +++ b/.github/scripts/validate_test_ops.sh @@ -6,15 +6,15 @@ retry () { $* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*) } -BRANCH="@main" +BRANCH="" if [[ ${MATRIX_CHANNEL} == "test" ]]; then SHORT_VERSION=${MATRIX_STABLE_VERSION%.*} - BRANCH="@release/${SHORT_VERSION}" + BRANCH="--branch release/${SHORT_VERSION}" fi # Clone the Pytorch branch -retry git clone --depth 1 https://github.com/pytorch/pytorch.git${BRANCH} +retry git clone ${BRANCH} --depth 1 https://github.com/pytorch/pytorch.git retry git submodule update --init --recursive pushd pytorch