Skip to content

Sso 19

Sso 19 #132

name: Validate Existing Contributors
on:
pull_request:
paths-ignore:
- 'CONTRIBUTING.md'
workflow_call:
env:
PYTHON_VERSION: 3.12
WORKING_DIR: codeforlife-workspace/.github/scripts/python/validate-existing-contributors
jobs:
validate-existing-contributors:
runs-on: ubuntu-latest
steps:
- name: 🛫 Checkout Pull Request
uses: actions/checkout@v4
- name: 🔎 View Pull Request's Commits
id: view-pr
run: echo "PULL_REQUEST=$(gh pr view ${{ github.event.pull_request.number }} --json commits)" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🛫 Checkout Workspace
uses: actions/checkout@v4
with:
repository: ocadotechnology/codeforlife-workspace
ref: main
path: codeforlife-workspace
- name: 🐍 Set up Python ${{ env.PYTHON_VERSION }} Environment
uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@main
with:
checkout: 'false'
python-version: ${{ env.PYTHON_VERSION }}
working-directory: ${{ env.WORKING_DIR }}
- name: 🕵️ Validate Existing Contributors
working-directory: ${{ env.WORKING_DIR }}
run: pipenv run python .
env:
PULL_REQUEST: ${{ steps.view-pr.outputs.PULL_REQUEST }}