Skip to content

Commit 50dd788

Browse files
fix: ensure subsequent steps run regardless of previous outcomes in deployment workflow
1 parent e6f2df9 commit 50dd788

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/CAdeploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- fix-deploy-pipeline
78
schedule:
89
- cron: '0 6,18 * * *' # Runs at 6:00 AM and 6:00 PM GMT
910

@@ -122,7 +123,7 @@ jobs:
122123
--parameters AzureOpenAILocation=${{ env.AZURE_LOCATION }} environmentName=${{ env.SOLUTION_PREFIX }} cosmosLocation=eastus2 gptDeploymentCapacity=${{ env.GPT_MIN_CAPACITY }} embeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} \
123124
124125
- name: Get AI Services name and store in variable
125-
if: steps.check_create_rg.outcome == 'success'
126+
if: always() && steps.check_create_rg.outcome == 'success'
126127
id: get_ai_services_name
127128
run: |
128129
set -e
@@ -138,7 +139,7 @@ jobs:
138139
fi
139140
140141
- name: List KeyVaults and Store in Array
141-
if: steps.check_create_rg.outcome == 'success'
142+
if: always() && steps.check_create_rg.outcome == 'success'
142143
id: list_keyvaults
143144
run: |
144145
@@ -192,7 +193,7 @@ jobs:
192193
# echo "Power BI URL updated successfully for application: $application_name."
193194

194195
- name: Delete Bicep Deployment
195-
if: steps.check_create_rg.outcome == 'success'
196+
if: always()
196197
run: |
197198
set -e
198199
echo "Checking if resource group exists..."
@@ -209,7 +210,7 @@ jobs:
209210
fi
210211
211212
- name: Wait for resource deletion to complete
212-
if: steps.check_create_rg.outcome == 'success'
213+
if: always() && steps.check_create_rg.outcome == 'success'
213214
run: |
214215
215216
# List of keyvaults
@@ -269,7 +270,7 @@ jobs:
269270
done
270271
271272
- name: Purging the Resources
272-
if: steps.check_create_rg.outcome == 'success'
273+
if: always() && steps.check_create_rg.outcome == 'success'
273274
run: |
274275
275276
set -e

0 commit comments

Comments
 (0)