-
Notifications
You must be signed in to change notification settings - Fork 38
43 lines (37 loc) · 1.29 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
# 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-pr-review-state:
uses: ocadotechnology/codeforlife-workspace/.github/workflows/validate-pull-request.yaml@new_contributor_validations # TODO: use @main
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
number: 53
review-state: APPROVED
# - 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