Skip to content

Commit

Permalink
Updated email to an HTML page when deployment is successfull
Browse files Browse the repository at this point in the history
  • Loading branch information
S Dev Aravind committed Nov 23, 2023
1 parent d1f6dfe commit 0c33e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-production-deploy-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:

- name: Send Email on Success
if: success()
run: curl --request POST --url https://api.sendgrid.com/v3/mail/send --header "Authorization:Bearer ${{ secrets.SENDGRID_API_KEY }}" --header "Content-Type:application/json" --data '{"personalizations":[{"to":[{"email":"${{ secrets.SENDGRID_TO_EMAIL }}"}],"subject":"Footlight CMS Deployment"}],"from":{"email":"${{ secrets.SENDGRID_FROM_EMAIL }}"},"content":[{"type":"text/plain","value":"A new version of Footlight CMS has been deployed."}]}'
run: curl --request POST --url https://api.sendgrid.com/v3/mail/send --header "Authorization:Bearer ${{ secrets.SENDGRID_API_KEY }}" --header "Content-Type:application/json" --data '{"personalizations":[{"to":[{"email":"${{ secrets.SENDGRID_TO_EMAIL }}"}],"subject":"Footlight CMS Deployment"}],"from":{"email":"${{ secrets.SENDGRID_FROM_EMAIL }}"},"content":[{"type":"text/html","value":"${{ vars.NEW_RELEASE_HTML_PAGE }}"}]}'

0 comments on commit 0c33e73

Please sign in to comment.