Skip to content
heart

GitHub Action

PromptPal Action

v1.0.3 Latest version

PromptPal Action

heart

PromptPal Action

PromptPal Action that can generate typescript and go types from PromptPal schema

Installation

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

              

- name: PromptPal Action

uses: PromptPal/[email protected]

Learn more about this action in PromptPal/github-action

Choose a version

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/[email protected]
        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