Skip to content

Commit d9e7b4f

Browse files
Merge pull request #514 from microsoft/deploy-wf-minorfix
ci: fix post deployment script issue in deploy workflow
2 parents 6c7f648 + e869652 commit d9e7b4f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
env:
1717
GPT_MIN_CAPACITY: 150
1818
TEXT_EMBEDDING_MIN_CAPACITY: 80
19-
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
19+
BRANCH_NAME: ${{ github.event.workflow_run.head_branch || github.head_ref || github.ref_name }}
2020

2121
jobs:
2222
deploy:
@@ -181,14 +181,17 @@ jobs:
181181
az account set --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
182182
183183
echo "Running post-deployment script..."
184+
184185
bash ./infra/scripts/copy_kb_files.sh \
185186
"${{ env.STORAGE_ACCOUNT_NAME }}" \
186187
"${{ env.STORAGE_CONTAINER_NAME }}" \
187188
"${{ secrets.AZURE_CLIENT_ID }}"
189+
188190
bash ./infra/scripts/run_create_index_scripts.sh \
189191
"${{ env.KEY_VAULT_NAME }}" \
190192
"${{ env.RESOURCE_GROUP_NAME }}" \
191193
"${{ env.AI_FOUNDRY_NAME }}" \
194+
"${{ env.RESOURCE_GROUP_NAME }}" \
192195
"${{ env.AI_SEARCH_SERVICE_NAME }}" \
193196
"${{ secrets.AZURE_CLIENT_ID }}"
194197

0 commit comments

Comments
 (0)