@@ -3,9 +3,7 @@ name: Validate Deployment - Researcher
3
3
on :
4
4
push :
5
5
branches :
6
- - main
7
- paths :
8
- - ' ResearchAssistant/**'
6
+ - byoc-researcher
9
7
schedule :
10
8
- cron : ' 0 7,19 * * *' # Runs at 7:00 AM and 7:00 PM GMT
11
9
@@ -26,10 +24,10 @@ jobs:
26
24
export GPT_MIN_CAPACITY="30"
27
25
export TEXT_EMBEDDING_MIN_CAPACITY="45"
28
26
export AZURE_REGIONS="${{ vars.AZURE_REGIONS_RA }}"
29
- chmod +x ResearchAssistant/Deployment /scripts/checkquota.sh
30
- if ! ResearchAssistant/Deployment /scripts/checkquota.sh; then
27
+ chmod +x infra /scripts/checkquota.sh
28
+ if ! infra /scripts/checkquota.sh; then
31
29
# If quota check fails due to insufficient quota, set the flag
32
- if grep -q "No region with sufficient quota found" ResearchAssistant/Deployment /scripts/checkquota.sh; then
30
+ if grep -q "No region with sufficient quota found" infra /scripts/checkquota.sh; then
33
31
echo "QUOTA_FAILED=true" >> $GITHUB_ENV
34
32
fi
35
33
exit 1 # Fail the pipeline if any other failure occurs
@@ -105,7 +103,7 @@ jobs:
105
103
set -e
106
104
az deployment group create \
107
105
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
108
- --template-file ResearchAssistant/Deployment /bicep/main.bicep \
106
+ --template-file infra /bicep/main.bicep \
109
107
--parameters solutionPrefix=${{ env.SOLUTION_PREFIX }}
110
108
- name : List KeyVaults and Store in Array
111
109
id : list_keyvaults
@@ -281,4 +279,4 @@ jobs:
281
279
# Send the notification
282
280
curl -X POST "${{ secrets.LOGIC_APP_URL }}" \
283
281
-H "Content-Type : application/json" \
284
- -d "$EMAIL_BODY" || echo "Failed to send notification"
282
+ -d "$EMAIL_BODY" || echo "Failed to send notification"
0 commit comments