Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify New Contributor | |
on: | |
push: | |
branches: | |
- new_contributor_validations # TODO: use main | |
workflow_dispatch: | |
inputs: | |
pull-request-number: | |
description: "The number of the new contributor's PR." | |
required: true | |
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: ${{ inputs.pull-request-number }} | |
# review-state: APPROVED | |
view-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛫 Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: refs/pull/54/head | |
- name: View PR | |
run: gh pr view 54 | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
validate-new-contributor: | |
# needs: [validate-pr-review-state] | |
uses: ocadotechnology/codeforlife-workspace/.github/workflows/validate-new-contributor.yaml@new_contributor_validations # TODO: use @main | |
with: | |
pull-request-number: 54 #${{ inputs.pull-request-number }} | |
verify-new-contributor: | |
needs: [validate-new-contributor] | |
runs-on: ubuntu-latest | |
steps: | |
- 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: '["${{ needs.validate-new-contributor.outputs.email-address }}"]' | |
campaign-id: 1506387 | |
personalization-values: '[{"name": "PR_URL", "value": "https://www.codeforlife.education/"}]' # TODO: real url |