Skip to content

Commit a027f69

Browse files
committed
dont use ci cache in re-runs
1 parent 5a2c618 commit a027f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/ci3.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function check_cache {
5656
"ci-release-pr"
5757
)
5858
# Check if CI_MODE is in cached_ci_modes
59-
if [[ " ${cached_ci_modes[@]} " =~ " ${CI_MODE} " ]]; then
59+
if [[ " ${cached_ci_modes[@]} " =~ " ${CI_MODE} " && "$GITHUB_RUN_ATTEMPT" -eq 1 ]]; then
6060
if cache_download "$cache_name" . 2>/dev/null && [ -f ".ci-success.txt" ]; then
6161
echo "Cache hit in .github/ci3.sh! Previous run: $(cat ".ci-success.txt")"
6262
exit 0

0 commit comments

Comments
 (0)