Skip to content

Commit 9485bc4

Browse files
author
Raffaele Marcello
committed
Refactor undeploy workflow to use Azure CLI for resource group deletion
1 parent 526d13f commit 9485bc4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/undeploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2222
enable-AzPSSession: true
2323

24-
# Destroy Resource Group
25-
- name: Azure ARM Deployment
26-
uses: azure/ARM@v1
24+
# Delete Resource Group
25+
- name: Azure CLI script
26+
uses: Azure/CLI@v1
2727
with:
28-
azcliversion: 2.0.72
2928
inlineScript: |
30-
az group delete --name ${{ secrets.AZURE_RG }} --yes --no-wait
29+
#!/bin/bash
30+
az group delete --name ${{ secrets.AZURE_RG }} --yes --no-wait
31+
echo "Resource Group Deleted"

0 commit comments

Comments
 (0)