Skip to content

Commit 9919452

Browse files
update Web App URL opening step to use Google Chrome and simplify resource group deletion condition
1 parent 572588d commit 9919452

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -213,20 +213,10 @@ jobs:
213213
echo "Successfully increased TPM for Text Embedding deployment."
214214
fi
215215
216-
- name: Open Web App URL
216+
- name: Open Web App URL using chrome
217217
shell: bash
218218
run: |
219-
echo "Opening Web App URL in the browser..."
220-
echo "Web App URL: ${{ steps.get_webapp_url.outputs.WEBAPP_URL }}"
221-
if command -v xdg-open &> /dev/null; then
222-
xdg-open "${{ steps.get_webapp_url.outputs.WEBAPP_URL }}"
223-
sleep 60
224-
elif command -v open &> /dev/null; then
225-
open "${{ steps.get_webapp_url.outputs.WEBAPP_URL }}"
226-
sleep
227-
else
228-
echo "No suitable command found to open the URL."
229-
fi
219+
google-chrome --new-window "${{ steps.get_webapp_url.outputs.WEBAPP_URL }}"
230220
sleep 120
231221
232222
- name: Run Post Deployment Script
@@ -287,9 +277,10 @@ jobs:
287277
az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
288278
289279
- name: Delete Resource Groups
290-
if: always()
280+
if: env.RESOURCE_GROUP_NAME != ''
291281
shell: bash
292282
run: |
283+
sleep 120
293284
az group delete --name ${{ env.RESOURCE_GROUP_NAME }} --yes --no-wait
294285
az group delete --name ${{ env.KUBERNETES_RESOURCE_GROUP_NAME }} --yes --no-wait
295286

0 commit comments

Comments
 (0)