mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[macOS] Use variable instead of hard coded value (#7214)
This commit is contained in:
@@ -101,7 +101,8 @@ function Start-DownloadWithRetry {
|
||||
[string] $Url,
|
||||
[string] $Name,
|
||||
[string] $DownloadPath = "${env:Temp}",
|
||||
[int] $Retries = 20
|
||||
[int] $Retries = 20,
|
||||
[int] $Interval = 30
|
||||
)
|
||||
|
||||
if ([String]::IsNullOrEmpty($Name)) {
|
||||
@@ -130,8 +131,8 @@ function Start-DownloadWithRetry {
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host "Waiting 30 seconds before retrying. Retries left: $Retries"
|
||||
Start-Sleep -Seconds 30
|
||||
Write-Host "Waiting $Interval seconds before retrying. Retries left: $Retries"
|
||||
Start-Sleep -Seconds $Interval
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user