Skip to content

PromptPal/github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

PromptPal/github-action

integrate this GitHub Action to simplify your CI experience

Important

Please make sure you already have a valid promptpal.yml config file

name: Testing

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

jobs:
  container-job:
    steps:
      - uses: PromptPal/github-action@v1.0.2
        env:
          PROMPTPAL_ENDPOINT: ${{ secrets.PROMPTPAL_ENDPOINT }}
          PROMPTPAL_API_TOKEN: ${{ secrets.PROMPTPAL_API_TOKEN }}
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          # generate types by PromptPal CLI
          command: pp g

Variables

variable type note example
token string GitHub personal token secrets.GITHUB_TOKEN
command string PromptPal commands. we use pp to present promptpal. full documetion is here: https://github.com/PromptPal/cli/ - pp init
- pp g