Skip to content

Commit

Permalink
Merge pull request #826 from culturecreates/enhancement/issue-807
Browse files Browse the repository at this point in the history
Updated JSON input of send mail job
  • Loading branch information
dev-aravind authored Nov 28, 2023
2 parents ec0efb1 + 830c165 commit e2171c6
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/build-production-deploy-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,26 @@ jobs:

- name: Send Email on Success
if: success()
run: curl -X "POST" \
run: |
curl -X "POST" \
'https://api.sendgrid.com/v3/mail/send' \
-H 'Authorization:Bearer ${{ secrets.SENDGRID_API_KEY }}' \
-H 'Content-Type:application/json' \
-d '{
"personalizations":[
{
"to":[
{"email":"${{ vars.SENDGRID_TO_EMAIL }}"},
{"email":"${{ vars.SUPPORT_EMAIL}}"}
"personalizations":[
{
"to":[
{"email":"${{ vars.SENDGRID_TO_EMAIL }}"},
{"email":"${{ vars.SUPPORT_EMAIL}}"}
]
}
],
"from":{"email":"${{ vars.SENDGRID_FROM_EMAIL }}"},
"subject":"Footlight CMS Deployment",
"content":[
{
"type":"text/html",
"value":"${{ vars.NEW_RELEASE_HTML_PAGE }}"
}
]
}
],
"from":{"email":"${{ vars.SENDGRID_FROM_EMAIL }}"},
"subject":"Footlight CMS Deployment",
"content":[
{
"type":"text/html",
"value":"${{ vars.NEW_RELEASE_HTML_PAGE }}"
}
]
}'

0 comments on commit e2171c6

Please sign in to comment.