Skip to content

Commit ab805ff

Browse files
authored
Only apply do_not_use_nightly_on_ci on regular PRs (#8057)
* Skip do_not_use_nightly_on_ci on release branch * Only apply do_not_use_nightly_on_ci for regular PRs * Fix typo
1 parent 440a3ac commit ab805ff

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.ci/scripts/setup-linux.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ fi
2323
# of nightly. This allows CI to test against latest commits from PyTorch
2424
install_executorch "use-pt-pinned-commit"
2525
build_executorch_runner "${BUILD_TOOL}"
26-
do_not_use_nightly_on_ci
26+
27+
if [[ "${GITHUB_BASE_REF:-}" == *main* || "${GITHUB_BASE_REF:-}" == *gh* ]]; then
28+
do_not_use_nightly_on_ci
29+
fi

.ci/scripts/setup-macos.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,7 @@ install_pytorch_and_domains
137137
# the pinned commit from PyTorch
138138
install_executorch "use-pt-pinned-commit"
139139
build_executorch_runner "${BUILD_TOOL}"
140-
do_not_use_nightly_on_ci
140+
141+
if [[ "${GITHUB_BASE_REF:-}" == *main* || "${GITHUB_BASE_REF:-}" == *gh* ]]; then
142+
do_not_use_nightly_on_ci
143+
fi

0 commit comments

Comments
 (0)