Skip to content

GitHub Action

This repository is a custom dockerized action that can be used in a GitHub Action workflow.

  • github_token: GitHub token with models: read permission at least. (required)
  • debug: Enable debug logging.
  • text: The generated text output.
  • data: The generated JSON data output, parsed and stringified.

Add the following to your step in your workflow file:

uses: microsoft/promptpex@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: My action
on:
push:
permissions:
contents: read
# issues: write
# pull-requests: write
models: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/promptpex@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}