From f82343cf17f4382168778822755a9a32b1d34453 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Fri, 5 Jan 2024 17:01:02 +0000 Subject: [PATCH] test --- .../workflows/send-new-contributor-email.yaml | 37 ------------------- .github/workflows/verify-new-contributor.yaml | 3 ++ 2 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 .github/workflows/send-new-contributor-email.yaml diff --git a/.github/workflows/send-new-contributor-email.yaml b/.github/workflows/send-new-contributor-email.yaml deleted file mode 100644 index fdcb43cd..00000000 --- a/.github/workflows/send-new-contributor-email.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: Send New Contributor Email - -on: - 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 - - 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: ${{ 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: '["${{ env.CONTRIBUTOR_EMAIL_ADDRESS }}"]' - campaign-id: 1506387 - personalization-values: '[{"name": "PR_URL", "value": "https://www.codeforlife.education/"}]' # TODO: real url diff --git a/.github/workflows/verify-new-contributor.yaml b/.github/workflows/verify-new-contributor.yaml index 9020a3bf..385e501d 100644 --- a/.github/workflows/verify-new-contributor.yaml +++ b/.github/workflows/verify-new-contributor.yaml @@ -1,6 +1,9 @@ name: Verify New Contributor on: + push: + branches: + - new_contributor_validations # TODO: use main workflow_dispatch: inputs: pull-request-number: