Skip to content

Update CONTRIBUTING.md #46

Update CONTRIBUTING.md

Update CONTRIBUTING.md #46

Workflow file for this run

name: Contributing
on:
pull_request_target:
types: [opened, edited]
branches:
- new_contributor_validations # TODO: use main
paths:
- 'CONTRIBUTING.md'
pull_request_review:
types: [submitted]
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 }}
- name: 🕵️ Validate New Contributor
working-directory: ${{ env.WORKING_DIR }}
run: pipenv run python validate_new_contributor.py
# if: github.event.review.state == 'APPROVED'
- name: 📧 Send Verification Email
uses: ocadotechnology/codeforlife-workspace/.github/actions/python/send-email@new_contributor_validations # TODO: use @main
with:
auth: ${{ secrets.DOTDIGITAL_API_USER_AUTH }}
to-addresses: '["${{ env.CONTRIBUTOR_EMAIL_ADDRESS }}"]'
campaign-id: 1506387
personalization-values: '[{"name": "PR_URL", "value": "${{ github.event.pull_request.html_url }}"}]'