You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/deploy.yml
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ on:
9
9
- main
10
10
- dev
11
11
- demo
12
+
- psl-deploypipeissue
12
13
schedule:
13
14
- cron: '0 5,17 * * *'# Runs at 5:00 AM and 5:00 PM GMT
14
15
workflow_dispatch:
@@ -98,7 +99,7 @@ jobs:
98
99
rg_exists=$(az group exists --name ${{ env.RESOURCE_GROUP_NAME }})
99
100
if [ "$rg_exists" = "false" ]; then
100
101
echo "Resource group does not exist. Creating..."
101
-
az group create --name ${{ env.RESOURCE_GROUP_NAME }} --location northcentralus || { echo "Error creating resource group"; exit 1; }
102
+
az group create --name ${{ env.RESOURCE_GROUP_NAME }} --location australiaeast || { echo "Error creating resource group"; exit 1; }
102
103
else
103
104
echo "Resource group already exists."
104
105
fi
@@ -382,7 +383,7 @@ jobs:
382
383
383
384
# Purge OpenAI Resource
384
385
echo "Purging the OpenAI Resource..."
385
-
if ! az resource delete --ids /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/providers/Microsoft.CognitiveServices/locations/northcentralus/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/deletedAccounts/${{ env.OPENAI_RESOURCE_NAME }} --verbose; then
386
+
if ! az resource delete --ids /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/providers/Microsoft.CognitiveServices/locations/australiaeast/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/deletedAccounts/${{ env.OPENAI_RESOURCE_NAME }} --verbose; then
386
387
echo "Failed to purge openai resource: ${{ env.OPENAI_RESOURCE_NAME }}"
387
388
else
388
389
echo "Purged the openai resource: ${{ env.OPENAI_RESOURCE_NAME }}"
0 commit comments