From 830c1654bbf98e7702fb636d914bee99150687aa Mon Sep 17 00:00:00 2001 From: dev-aravind <132546883+dev-aravind@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:04:02 +0530 Subject: [PATCH] Updated JSON input of send mail job --- .../workflows/build-production-deploy-s3.yml | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-production-deploy-s3.yml b/.github/workflows/build-production-deploy-s3.yml index 4e92dacc3..87d134e7c 100644 --- a/.github/workflows/build-production-deploy-s3.yml +++ b/.github/workflows/build-production-deploy-s3.yml @@ -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 }}" - } - ] }'