mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
[Ubuntu] Freeze Az.Accounts module for Ubuntu 20 (#1993)
* add reboot for Ubuntu20 * freeze Az.Accounts 1.9.5
This commit is contained in:
committed by
GitHub
parent
66b931d9af
commit
567e92c4dc
@@ -18,6 +18,10 @@ pwsh -Command "Update-Module -Name PowerShellGet -Force"
|
|||||||
# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
|
# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
|
||||||
for version in ${versions[@]}; do
|
for version in ${versions[@]}; do
|
||||||
pwsh -Command "Save-Module -Name Az -LiteralPath /usr/share/az_$version -RequiredVersion $version -Force -Verbose"
|
pwsh -Command "Save-Module -Name Az -LiteralPath /usr/share/az_$version -RequiredVersion $version -Force -Verbose"
|
||||||
|
if isUbuntu20; then
|
||||||
|
rm -rf "/usr/share/az_$version/Az.Accounts"
|
||||||
|
pwsh -Command "Save-Module -Name Az.Accounts -LiteralPath /usr/share/az_$version -RequiredVersion 1.9.5 -Force -Verbose"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Run tests to determine that the software installed as expected
|
# Run tests to determine that the software installed as expected
|
||||||
|
|||||||
Reference in New Issue
Block a user