Skip to content

Commit

Permalink
Updated JSON input of send mail job
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind authored Nov 28, 2023
1 parent ec0efb1 commit 830c165
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 830c165

Please sign in to comment.