Skip to content

Commit 971f7dc

Browse files
committed
Undo downgrading azure cli
1 parent 7cbc979 commit 971f7dc

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

actions/prepare_azure_metadata/action.yaml

-32
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,6 @@ runs:
2020
using: "composite"
2121

2222
steps:
23-
- name: uninstall azure-cli
24-
shell: bash
25-
run: |
26-
sudo apt-get remove -y azure-cli
27-
28-
- name: install azure-cli 2.61.0
29-
shell: bash
30-
run: |
31-
sudo apt-get update
32-
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
33-
sudo mkdir -p /etc/apt/keyrings
34-
curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
35-
gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
36-
sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
37-
AZ_DIST=$(lsb_release -cs)
38-
echo "Types: deb
39-
URIs: https://packages.microsoft.com/repos/azure-cli/
40-
Suites: ${AZ_DIST}
41-
Components: main
42-
Architectures: $(dpkg --print-architecture)
43-
Signed-by: /etc/apt/keyrings/microsoft.gpg" | sudo tee /etc/apt/sources.list.d/azure-cli.sources
44-
sudo apt-get update
45-
sudo apt-get install azure-cli
46-
47-
apt-cache policy azure-cli
48-
# Obtain the currently installed distribution
49-
AZ_DIST=$(lsb_release -cs)
50-
# Store an Azure CLI version of choice
51-
AZ_VER=2.61.0
52-
# Install a specific version
53-
sudo apt-get install azure-cli=${AZ_VER}-1~${AZ_DIST} --allow-downgrades
54-
5523
- name: check azure-cli version
5624
shell: bash
5725
run: |

0 commit comments

Comments
 (0)