We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 532274a commit e624e5dCopy full SHA for e624e5d
action.yml
@@ -74,8 +74,9 @@ runs:
74
$OutFile
75
)
76
77
- $maxRetries = 3
+ $maxRetries = 5
78
$retryCount = 0
79
+ $delay = 2
80
$success = $false
81
82
while (-not $success -and $retryCount -lt $maxRetries) {
@@ -84,8 +85,9 @@ runs:
84
85
$success = $true
86
} catch [System.Net.WebException] {
87
Write-Output "Attempt $($retryCount + 1) failed. Retrying..."
- Start-Sleep -Seconds 3
88
+ Start-Sleep -Seconds $delay
89
$retryCount++
90
+ $delay += $delay
91
}
92
93
@@ -94,7 +96,7 @@ runs:
94
96
95
97
98
- Invoke-WebRequest-With-Retry "https://cygwin.com/$setupFileName" $setupExe
99
+ Invoke-WebRequest-With-Retry "https://cygwin.com/bad/$setupFileName" $setupExe
100
101
if ((Get-Item -LiteralPath $setupExe).Length -eq 0) {
102
throw "The downloaded setup has a zero length!"
0 commit comments