mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 19:50:24 +00:00
Add retry strategy
This commit is contained in:
@@ -40,7 +40,7 @@ function Test-DownloadUrl {
|
|||||||
|
|
||||||
Write-Host "Downloading manifest json from '$ManifestUrl'..."
|
Write-Host "Downloading manifest json from '$ManifestUrl'..."
|
||||||
try {
|
try {
|
||||||
$manifestResponse = Invoke-WebRequest -Method Get -Uri $ManifestUrl -Headers $webRequestHeaders
|
$manifestResponse = Invoke-WebRequest -Method Get -Uri $ManifestUrl -Headers $webRequestHeaders -MaximumRetryCount 5 -RetryIntervalSec 10
|
||||||
} catch {
|
} catch {
|
||||||
Publish-Error "Unable to download manifest json from '$ManifestUrl'" $_
|
Publish-Error "Unable to download manifest json from '$ManifestUrl'" $_
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user