ci: ensure retry logic consistency (#226038)

Related PR: #171489

Signed-off-by: Kevin Cui <bh@bugs.cc>
This commit is contained in:
Kevin Cui
2024-09-04 12:51:19 +08:00
committed by GitHub
parent c5d0bb8956
commit d1eab2bcf4
10 changed files with 12 additions and 12 deletions

View File

@@ -66,7 +66,7 @@ steps:
for i in {1..5}; do # try 5 times
yarn --cwd build --frozen-lockfile --check-files && break
if [ $i -eq 3 ]; then
if [ $i -eq 5 ]; then
echo "Yarn failed too many times" >&2
exit 1
fi