We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89a5352 commit 332a05dCopy full SHA for 332a05d
.github/workflows/cleanup-self-hosted-runners.yml
@@ -21,16 +21,17 @@ jobs:
21
steps:
22
- uses: actions/checkout@v4
23
- name: Azure Login
24
- uses: azure/login@v1
+ uses: azure/login@v2
25
with:
26
creds: ${{ secrets.AZURE_CREDENTIALS }}
27
- name: Discover VMs to delete
28
- uses: azure/CLI@v1
+ uses: azure/CLI@v2
29
env:
30
GH_APP_ID: ${{ secrets.GH_APP_ID }}
31
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
32
33
- azcliversion: 2.64.0
+ # 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
35
inlineScript: |
36
active_vms=$(az vm list -g ${{ secrets.AZURE_RESOURCE_GROUP }} | jq -c '.[] | {name,timeCreated}')
37
current_time=$(date +%s)
0 commit comments