[Ubuntu] Remove zip versions from Azuremodules (#9774)

This commit is contained in:
sssharif
2024-05-13 08:08:17 -04:00
committed by GitHub
parent 530454b772
commit dca8e74e47
4 changed files with 0 additions and 25 deletions

View File

@@ -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"