Skip to content

Commit

Permalink
Fix logic for env variable checks
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower committed Nov 21, 2023
1 parent ec3f135 commit 075b41e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/environments-test-azure-openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
- name: Check environment variables are set
run: |
if [ -z "$AZURE_OPENAI_API_KEY" ]; then
exit 0
else
echo "AZURE_OPENAI_API_KEY environment variable is not set"
exit 1
fi
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/environments-test-openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
- name: Check environment variables are set
run: |
if [ -z "$OPENAI_API_KEY" ]; then
exit 0
else
echo "AZURE_OPENAI_API_KEY environment variable is not set"
exit 1
fi
Expand Down

0 comments on commit 075b41e

Please sign in to comment.