Skip to content

Commit 78434b7

Browse files
committed
minor #985 [Run examples] Pass OPENAI_API_KEY secret to examples runner (OskarStark)
This PR was merged into the main branch. Discussion ---------- [Run examples] Pass OPENAI_API_KEY secret to examples runner | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT GitHub Actions secrets are not automatically exposed as environment variables. They need to be explicitly passed using the env key. Commits ------- d72a20f Pass OPENAI_API_KEY secret to examples runner
2 parents cf40245 + d72a20f commit 78434b7

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)