mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
[Ubuntu] Remove zip versions from Azuremodules (#9774)
This commit is contained in:
@@ -22,22 +22,6 @@ foreach ($module in $modules) {
|
||||
Save-Module -Path $modulePath -Name $moduleName -RequiredVersion $version -Force
|
||||
}
|
||||
|
||||
$assets = Invoke-RestMethod $module.url
|
||||
|
||||
# Get github release asset for each version
|
||||
foreach ($toolVersion in $module.zip_versions) {
|
||||
$asset = $assets | Where-Object version -eq $toolVersion `
|
||||
| Select-Object -ExpandProperty files `
|
||||
| Select-Object -First 1
|
||||
|
||||
if (-not $asset) {
|
||||
Write-Host "Asset for ${moduleName} ${toolVersion} was not found in versions manifest"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host "Downloading asset for ${moduleName} ${toolVersion}: $($asset.filename)"
|
||||
Invoke-DownloadWithRetry $asset.download_url -Destination "$installPSModulePath/$($asset.filename)"
|
||||
}
|
||||
}
|
||||
|
||||
Invoke-PesterTests -TestFile "PowerShellModules" -TestName "AzureModules"
|
||||
|
||||
Reference in New Issue
Block a user