We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c583930 commit 8139c74Copy full SHA for 8139c74
1 file changed
.github/workflows/job-deploy.yml
@@ -339,12 +339,14 @@ jobs:
339
AZURE_REGIONS: ${{ vars.AZURE_REGIONS }}
340
run: |
341
chmod +x scripts/checkquota.sh
342
- if ! scripts/checkquota.sh; then
+ QUOTA_OUTPUT="$(scripts/checkquota.sh 2>&1)"; QUOTA_STATUS=$?
343
+ echo "$QUOTA_OUTPUT"
344
+ if [ "$QUOTA_STATUS" -ne 0 ]; then
345
# If quota check fails due to insufficient quota, set the flag
- if grep -q "No region with sufficient quota found" scripts/checkquota.sh; then
346
+ if echo "$QUOTA_OUTPUT" | grep -q "No region with sufficient quota found"; then
347
echo "QUOTA_FAILED=true" >> $GITHUB_ENV
348
fi
- exit 1 # Fail the pipeline if any other failure occurs
349
+ exit 1 # Fail the pipeline if any failure occurs
350
351
352
- name: Set Quota Failure Output
0 commit comments