Skip to content

Commit 332a05d

Browse files
committed
Azure Actions: upgrade to v2 and pin Azure CLI to 2.63.0
1 parent 89a5352 commit 332a05d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/cleanup-self-hosted-runners.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Azure Login
24-
uses: azure/login@v1
24+
uses: azure/login@v2
2525
with:
2626
creds: ${{ secrets.AZURE_CREDENTIALS }}
2727
- name: Discover VMs to delete
28-
uses: azure/CLI@v1
28+
uses: azure/CLI@v2
2929
env:
3030
GH_APP_ID: ${{ secrets.GH_APP_ID }}
3131
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
3232
with:
33-
azcliversion: 2.64.0
33+
# Stick to 2.63.0 until jq is added to 2.64.0+ https://github.com/Azure/azure-cli/issues/29830
34+
azcliversion: 2.63.0
3435
inlineScript: |
3536
active_vms=$(az vm list -g ${{ secrets.AZURE_RESOURCE_GROUP }} | jq -c '.[] | {name,timeCreated}')
3637
current_time=$(date +%s)

0 commit comments

Comments
 (0)