Skip to content

fix: Main node entrypoint, async nits, global tools #15

fix: Main node entrypoint, async nits, global tools

fix: Main node entrypoint, async nits, global tools #15

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/node-gptscript/.github/workflows/run_tests.yaml@main
needs: check-perms
with:
git_ref: ${{ github.event.pull_request.head.sha }}
secrets:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}