-
Notifications
You must be signed in to change notification settings - Fork 38
46 lines (39 loc) · 1.25 KB
/
validate-new-contributor.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
45
46
name: Validate New Contributor
on:
push:
branches:
- new_contributor_validations
# pull_request:
# types: [opened, edited]
# branches:
# - new_contributor_validations # TODO: use main
# paths:
# - 'CONTRIBUTING.md'
# workflow_call:
# inputs:
# pull-request-number:
# required: true
# type: number
env:
PYTHON_VERSION: 3.11
WORKING_DIR: .github/scripts/python
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: 🛫 Checkout
uses: actions/checkout@v4
- name: Validate Pull Request Status
run: gh pr view 53
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: 🛫 Checkout Pull Request
# if: ${{ github.event_name == 'workflow_call' }}
# run: gh pr checkout ${{ inputs.pull-request-number }}
# - uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@new_contributor_validations # TODO: use @main
# with:
# python-version: ${{ env.PYTHON_VERSION }}
# working-directory: ${{ env.WORKING_DIR }}
# - name: 🕵️ Validate New Contributor
# working-directory: ${{ env.WORKING_DIR }}
# run: pipenv run python validate_new_contributor.py