Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/actions/pin-azure-cli/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pin Azure CLI
description: Installs Azure CLI 2.83.0 on Linux runners and upgrades Azure CLI on Windows runners
runs:
using: composite
steps:
- name: Pin Azure CLI on Linux
if: runner.os == 'Linux'
shell: bash
# Avoid the Python module-loader deadlock: https://github.com/Azure/azure-cli/issues/32869
run: |
set -eo pipefail
curl -fsSL 'https://azurecliprod.blob.core.windows.net/$root/deb_install.sh' | sudo bash
echo "Available versions:"
apt-cache policy azure-cli
sudo apt-get install --allow-downgrades -y azure-cli=2.83.0-1~noble
which az
az --version
python3 --version
echo "ImageVersion: $ImageVersion"
13 changes: 0 additions & 13 deletions .github/actions/upgrade-azure-cli/action.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ jobs:
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- name: Upgrade Azure CLI
- name: Pin Azure CLI
if: matrix.test-category == 'AzureServiceBus' || matrix.test-category == 'AzureStorageQueues'
uses: ./.github/actions/upgrade-azure-cli
uses: ./.github/actions/pin-azure-cli
- name: Move NuGet caches to the temp drive
uses: ./.github/actions/nuget-cache-location
- name: Setup .NET SDK
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/container-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- name: Upgrade Azure CLI
- name: Pin Azure CLI
if: matrix.name == 'asb' || matrix.name == 'asq'
uses: ./.github/actions/upgrade-azure-cli
uses: ./.github/actions/pin-azure-cli
- name: Setup .NET SDK
uses: actions/setup-dotnet@v6.0.0
with:
Expand Down
Loading