Skip to content

Commit b1652d9

Browse files
fix error in running post deployment script in deploy wf
1 parent 6c7f648 commit b1652d9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ on:
99
- main
1010
- dev
1111
- demo
12+
- deploy-wf-minorfix
1213

1314
schedule:
1415
- cron: '0 9,21 * * *' # Runs at 9:00 AM and 9:00 PM GMT
1516

1617
env:
1718
GPT_MIN_CAPACITY: 150
1819
TEXT_EMBEDDING_MIN_CAPACITY: 80
19-
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
20+
BRANCH_NAME: ${{ github.event.workflow_run.head_branch || github.head_ref || github.ref_name }}
2021

2122
jobs:
2223
deploy:
@@ -181,14 +182,17 @@ jobs:
181182
az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
182183
183184
echo "Running post-deployment script..."
185+
184186
bash ./infra/scripts/copy_kb_files.sh \
185187
"${{ env.STORAGE_ACCOUNT_NAME }}" \
186188
"${{ env.STORAGE_CONTAINER_NAME }}" \
187189
"${{ secrets.AZURE_CLIENT_ID }}"
190+
188191
bash ./infra/scripts/run_create_index_scripts.sh \
189192
"${{ env.KEY_VAULT_NAME }}" \
190193
"${{ env.RESOURCE_GROUP_NAME }}" \
191194
"${{ env.AI_FOUNDRY_NAME }}" \
195+
"${{ env.RESOURCE_GROUP_NAME }}" \
192196
"${{ env.AI_SEARCH_SERVICE_NAME }}" \
193197
"${{ secrets.AZURE_CLIENT_ID }}"
194198

.github/workflows/docker-build-and-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build Docker and Optional Push
22

33
on:
44
push:
5-
branches: [main, dev, demo]
5+
branches: [main, dev, demo, deploy-wf-minorfix]
66
pull_request:
77
branches: [main, dev, demo]
88
types:

0 commit comments

Comments
 (0)