GitHub Action
This repository is a custom dockerized action that can be used in a GitHub Action workflow.
Inputs
Section titled “Inputs”github_token
: GitHub token withmodels: read
permission at least. (required)debug
: Enable debug logging.
Outputs
Section titled “Outputs”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@mainwith: github_token: ${{ secrets.GITHUB_TOKEN }}
Example
Section titled “Example”name: My actionon: push:permissions: contents: read # issues: write # pull-requests: write models: readconcurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: truejobs: run-script: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: microsoft/promptpex@main with: github_token: ${{ secrets.GITHUB_TOKEN }}