-
Notifications
You must be signed in to change notification settings - Fork 34
44 lines (37 loc) · 1.35 KB
/
validate-existing-contributors.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 }}