File tree 2 files changed +3
-2
lines changed
ResearchAssistant/Deployment/scripts 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 25
25
export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
26
26
export GPT_MIN_CAPACITY="30"
27
27
export TEXT_EMBEDDING_MIN_CAPACITY="45"
28
+ export AZURE_REGIONS="${{ vars.AZURE_REGIONS_RA }}"
28
29
29
30
chmod +x ResearchAssistant/Deployment/scripts/checkquota.sh
30
31
if ! ResearchAssistant/Deployment/scripts/checkquota.sh; then
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# List of Azure regions to check for quota (update as needed)
4
- REGIONS=( " eastus2 " " westus " " northcentralus " " uksouth " " francecentral " )
4
+ IFS= ' , ' read -ra REGIONS <<< " $AZURE_REGIONS "
5
5
6
6
SUBSCRIPTION_ID=" ${AZURE_SUBSCRIPTION_ID} "
7
7
GPT_MIN_CAPACITY=" ${GPT_MIN_CAPACITY} "
@@ -18,7 +18,7 @@ if ! az login --service-principal -u "$AZURE_CLIENT_ID" -p "$AZURE_CLIENT_SECRET
18
18
fi
19
19
20
20
echo " 🔄 Validating required environment variables..."
21
- if [[ -z " $SUBSCRIPTION_ID " || -z " $GPT_MIN_CAPACITY " || -z " $TEXT_EMBEDDING_MIN_CAPACITY " ]]; then
21
+ if [[ -z " $SUBSCRIPTION_ID " || -z " $GPT_MIN_CAPACITY " || -z " $TEXT_EMBEDDING_MIN_CAPACITY " || -z " $REGIONS " ]]; then
22
22
echo " ❌ ERROR: Missing required environment variables."
23
23
exit 1
24
24
fi
You can’t perform that action at this time.
0 commit comments