Workspace#122 #110
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Existing Contributors | |
on: | |
pull_request: | |
paths-ignore: | |
- 'CONTRIBUTING.md' | |
workflow_call: | |
env: | |
PYTHON_VERSION: 3.11 | |
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 }} |