fix: retry gh install on failure

This commit is contained in:
Baptiste Augrain
2025-07-24 08:57:00 +02:00
parent abf3fc3fc2
commit bfdcc2257b
3 changed files with 15 additions and 7 deletions

View File

@@ -118,7 +118,7 @@ fi
for i in {1..5}; do # try 5 times
npm ci && break
if [[ $i -eq 3 ]]; then
if [[ $i == 3 ]]; then
echo "Npm install failed too many times" >&2
exit 1
fi

View File

@@ -13,7 +13,7 @@ cd vscode || { echo "'vscode' dir not found"; exit 1; }
for i in {1..5}; do # try 5 times
npm ci && break
if [[ $i -eq 3 ]]; then
if [[ $i == 3 ]]; then
echo "Npm install failed too many times" >&2
exit 1
fi