File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -402,10 +402,10 @@ jobs:
402402 AZURE_TENANT_ID : ${{ secrets.AZURE_TENANT_ID }}
403403 AZURE_SUBSCRIPTION_ID : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
404404 AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
405- AZURE_ENV_NAME : ${{ github.run_id }}
405+ AZURE_ENV_NAME : ${{ needs.deploy.outputs.solution_suffix }} # Get from deploy job
406406 AZURE_LOCATION : ${{ vars.AZURE_LOCATION }}
407407 imageTag : ${{ needs.deploy.outputs.imageTag }}
408- AZURE_RESOURCE_GROUP : ${{ needs.deploy.outputs.resource_group }} # Add this line
408+ AZURE_RESOURCE_GROUP : ${{ needs.deploy.outputs.resource_group }}
409409
410410 steps :
411411 - name : Checkout code
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ disable-auth-fixed:
178178
179179destroy : azd-login # # 🧨 Destroy everything in Azure
180180 @if [ -n " $( AZURE_RESOURCE_GROUP) " ]; then \
181+ azd env select ${AZURE_ENV_NAME}; \
181182 echo " Using resource group: $( AZURE_RESOURCE_GROUP) " ; \
182183 azd env set AZURE_RESOURCE_GROUP $(AZURE_RESOURCE_GROUP ) ; \
183184 azd down --force --purge --no-prompt; \
You can’t perform that action at this time.
0 commit comments