Skip to content

chore: fix the run_tests actions to not depend on anything #5

chore: fix the run_tests actions to not depend on anything

chore: fix the run_tests actions to not depend on anything #5

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

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

View workflow run for this annotation

GitHub Actions / Pull Request

Invalid workflow file

The workflow is not valid. In .github/workflows/pull_request.yaml (Line: 35, Col: 11): Error from called workflow gptscript-ai/node-gptscript/.github/workflows/run_tests.yaml@main (Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
needs: check-perms
with:
git_ref: ${{ github.event.pull_request.head.sha }}
secrets:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}