Skip to content

Commit 16e39f6

Browse files
Update environment selection step to include deployment deletion using azd
1 parent 5a8de1e commit 16e39f6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/deploy-Parameterized.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,9 @@ jobs:
660660
echo "⚠️ Skipping Docker image cleanup (using standard branch image: $IMAGE_TAG)"
661661
fi
662662
663-
- name: Select Environment
663+
- name: Select Environment and Delete deployment using azd
664664
run: |
665+
set -e
665666
# Try to select the environment if it exists, otherwise create a minimal environment for cleanup
666667
azd env list
667668
if azd env list | grep -q "${{ env.ENV_NAME }}"; then
@@ -676,9 +677,6 @@ jobs:
676677
azd env set AZURE_LOCATION="${{ env.AZURE_LOCATION }}"
677678
fi
678679
679-
- name: Delete deployment using azd
680-
run: |
681-
set -e
682680
echo "Deleting deployment..."
683681
azd down --purge --force --no-prompt
684682
echo "Deployment deleted successfully."

0 commit comments

Comments
 (0)