Skip to content

Commit f2b22ad

Browse files
authored
Add test ops validation for validation workflows (#1655)
1 parent 3b47169 commit f2b22ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/scripts/validate_test_ops.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ retry () {
66
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
77
}
88

9-
BRANCH="@main"
9+
BRANCH=""
1010
if [[ ${MATRIX_CHANNEL} == "test" ]]; then
1111
SHORT_VERSION=${MATRIX_STABLE_VERSION%.*}
12-
BRANCH="@release/${SHORT_VERSION}"
12+
BRANCH="--branch release/${SHORT_VERSION}"
1313
fi
1414

1515

1616
# Clone the Pytorch branch
17-
retry git clone --depth 1 https://github.com/pytorch/pytorch.git${BRANCH}
17+
retry git clone ${BRANCH} --depth 1 https://github.com/pytorch/pytorch.git
1818
retry git submodule update --init --recursive
1919
pushd pytorch
2020

0 commit comments

Comments
 (0)