Skip to content

Commit bc6d390

Browse files
committedDec 21, 2024
fix integrationTests.yaml to properly use repo env vars
1 parent f3538d0 commit bc6d390

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎.github/workflows/integrationTests.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ jobs:
4646
- name: Run integration tests
4747
env:
4848
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
49+
if: ${{ env.OPENAI_API_KEY != '' }}
50+
run: pnpm run integrationTests
51+
52+
- name: Skip integration tests
53+
if: ${{ env.OPENAI_API_KEY == '' }}
4954
run: |
50-
if [ -z "$OPENAI_API_KEY" ]; then
51-
echo "Skipping integration tests due to missing required API keys"
52-
exit 1
53-
else
54-
pnpm run integrationTests
55-
fi
55+
echo "Skipping integration tests due to missing required API keys"
56+
exit 1

0 commit comments

Comments
 (0)