Browse Source

fix: no sleep after final release upload retry (#288)

Addresses Copilot review on #287: only sleep between attempts,
and log attempt count instead of retry count.
James McConnell 6 ngày trước cách đây
mục cha
commit
7b3ca98412
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      .github/workflows/main.yml

+ 4 - 2
.github/workflows/main.yml

@@ -1398,8 +1398,10 @@ jobs:
               ok=true
               break
             fi
-            echo "Retry $attempt/3 failed for: $f" >&2
-            sleep 10
+            echo "Attempt $attempt/3 failed for: $f" >&2
+            if [ "$attempt" -lt 3 ]; then
+              sleep 10
+            fi
           done
           if [ "$ok" = false ]; then
             echo "ERROR: giving up on $f" >&2