Răsfoiți Sursa

fix(action): ensure rm command does not fail during workspace cleanup

TheWildJames 4 luni în urmă
părinte
comite
9983fe7606
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      .github/actions/download-kernel/action.yml

+ 1 - 1
.github/actions/download-kernel/action.yml

@@ -67,7 +67,7 @@ runs:
           fi
           if [ $attempt -lt $MAX_RETRIES ]; then
             echo "Cleaning workspace and retrying after ${RETRY_DELAY_SHORT}s..."
-            rm -rf .repo
+            rm -rf .repo || true
             sleep $RETRY_DELAY_SHORT
             init_repo
           else