Skip to content

top level workflow

top level workflow #1

# name: Validate Pull Request
on:
workflow_call:
inputs:
number:
required: true
type: number
review-state:
required: false
type: string
secrets:
GITHUB_TOKEN:

Check failure on line 13 in .github/workflows/validate-pull-request.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/validate-pull-request.yaml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: Echo Path
run: echo "${{ github.workflow }}"
- uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@new_contributor_validations # TODO: use @main
with:
python-version: 3.11
working-directory: ${{ github.workflow }}
- name: Validate Pull Request
shell: bash
working-directory: ${{ github.workflow }}
run: pipenv run python validate-pull-request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUMBER: ${{ inputs.number }}
REVIEW_STATE: ${{ inputs.review-state }}