mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 08:22:12 +00:00
[windows] Remove checksum validation for WSL2 and AzCosmos db (#12425)
This commit is contained in:
committed by
GitHub
parent
9c685e8b41
commit
938abb9f14
@@ -198,6 +198,7 @@ function Invoke-DownloadWithRetry {
|
||||
for ($retries = 20; $retries -gt 0; $retries--) {
|
||||
try {
|
||||
$attemptStartTime = Get-Date
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
Invoke-WebRequest -Uri $Url -OutFile $Path -UseBasicParsing
|
||||
$attemptSeconds = [math]::Round(($(Get-Date) - $attemptStartTime).TotalSeconds, 2)
|
||||
Write-Host "Package downloaded in $attemptSeconds seconds"
|
||||
@@ -794,7 +795,7 @@ function Get-ChecksumFromGithubRelease {
|
||||
[Parameter(Mandatory = $true)]
|
||||
[Alias("File", "Asset")]
|
||||
[string] $FileName,
|
||||
[Parameter(Mandatory = $true)]
|
||||
[Parameter(Mandatory = $false)]
|
||||
[ValidateSet("SHA256", "SHA512")]
|
||||
[string] $HashType
|
||||
)
|
||||
@@ -867,7 +868,7 @@ function Get-ChecksumFromUrl {
|
||||
[Parameter(Mandatory = $true)]
|
||||
[Alias("File", "Asset")]
|
||||
[string] $FileName,
|
||||
[Parameter(Mandatory = $true)]
|
||||
[Parameter(Mandatory = $false)]
|
||||
[ValidateSet("SHA256", "SHA512")]
|
||||
[Alias("Type")]
|
||||
[string] $HashType
|
||||
|
||||
Reference in New Issue
Block a user