Skip to content
cpu

GitHub Action

GPT Runner

v1.0.0 Latest version

GPT Runner

cpu

GPT Runner

Run GPT Prompt from GitHub Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GPT Runner

uses: dukeluo/gpt-runner@v1.0.0

Learn more about this action in dukeluo/gpt-runner

Choose a version

GPT Runner

This action allows you to run GPT prompt for your codebase from GitHub Actions.

How to start

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.

Further Reading

Donate