Skip to content

Commit d72a20f

Browse files
committed
Pass OPENAI_API_KEY secret to examples runner
GitHub Actions secrets are not automatically exposed as environment variables. They need to be explicitly passed using the env key.
1 parent 3d7550c commit d72a20f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/run-examples.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
- name: Run OpenAI examples
3131
id: run-examples
3232
run: ./runner openai
33+
env:
34+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
3335

3436
- name: Remove label
3537
if: always()

0 commit comments

Comments
 (0)