-
Notifications
You must be signed in to change notification settings - Fork 38
34 lines (30 loc) · 1.02 KB
/
contributing.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
name: Contributing
on:
push:
branches:
- new_contributor_validations # TODO: use main
pull_request:
branches:
- new_contributor_validations # TODO: use main
paths:
- 'CONTRIBUTING.md'
workflow_dispatch:
env:
PYTHON_VERSION: 3.11
WORKING_DIR: .github/scripts/python
jobs:
handle_new_contributor:
runs-on: ubuntu-latest
steps:
- 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 }}
install-args: "--dev"
- name: 🏃 Run Script
working-directory: ${{ env.WORKING_DIR }}
run: pipenv run python handle_new_contributor.py
env:
PR_ID: ${{ github.event.number }}
DOTDIGITAL_API_USER_EMAIL_ADDRESS: ${{ secrets.DOTDIGITAL_API_USER_EMAIL_ADDRESS }}
DOTDIGITAL_API_USER_PASSWORD: ${{ secrets.DOTDIGITAL_API_USER_PASSWORD }}