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