This action allows you to run GPT prompt for your codebase from GitHub Actions.
Firstly, you need to set OpenAI API Key with a action secret named OPENAI_API_KEY
for this action. You can find more information about how to do it here.
To use this action in your workflow, you can add the following step:
- name: Run GPT Prompt
uses: DukeLuo/gpt-runner@v1.0.0
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
with:
cmd: promptr -p "Cleanup the code in src/index.js" # Specify your desired GPT Prompt command
You can check out this full example workflow for more information.