Skip to content

feat: add ability to list models from providers #96

feat: add ability to list models from providers

feat: add ability to list models from providers #96

Workflow file for this run

name: Pull Request
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- labeled
branches:
- main
paths-ignore:
- README.md
jobs:
check-perms:
if: ${{ !github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- name: Get User Permission
id: checkAccess
uses: actions-cool/check-user-permission@v2
with:
require: write
username: ${{ github.triggering_actor }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check User Permission
if: steps.checkAccess.outputs.require-result == 'false'
run: |
echo "${{ github.triggering_actor }} does not have permissions on this repo."
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
echo "Job originally triggered by ${{ github.actor }}"
exit 1
run-tests:
uses: gptscript-ai/go-gptscript/.github/workflows/run_tests.yaml@main

Check failure on line 35 in .github/workflows/pull_request.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull_request.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/pull_request.yaml" -> "gptscript-ai/go-gptscript/.github/workflows/run_tests.yaml@main" (source branch with sha:48c714dd5bbfdb57f82884152933b03fd4d29b6e) : every step must define a `uses` or `run` key
needs: check-perms
with:
git_ref: ${{ github.event.pull_request.head.sha }}
secrets:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}