Sanjivani-S / DraftGPT

GPT that drafts a Root Cause Analysis (RCA) document with input from unstructured sources (e.g. Slack chat, document templates, and emails)
3 stars 2 forks source link

Set up the environment with API key in GHA #3

Closed montao closed 3 months ago

montao commented 3 months ago

The purpose of this pull request is to enable the usage of the Open AI API key in the Github actions workflow. It needs an environment and an environment secret both with the same name OPENAI_API_KEY. Then it will run and connect to the OpenAI API in the GHA workflow as seen in the figure.

Screenshot 2024-03-21 at 22 24 27

montao commented 3 months ago

We can try and create an environment named OPENAI_API_KEY with a secret named OPENAI_API_KEY and the value of that secret is an API key, then it should work, as seen in the workflow in my fork of it. https://github.com/montao/DraftGPT/actions/runs/8381917961/job/22954544537

Screenshot 2024-03-21 at 22 29 12