This commit is contained in:
@@ -38,9 +38,15 @@ jobs:
|
|||||||
- name: Send success email
|
- name: Send success email
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
echo "Subject: Deployment Successful - Portfolio
|
cat > /tmp/email.txt << 'ENDMAIL'
|
||||||
|
From: GitHub Actions
|
||||||
|
To: raghu6004@gmail.com
|
||||||
|
Subject: Deployment Successful - Portfolio
|
||||||
|
|
||||||
Deployment completed successfully!
|
Deployment completed successfully!
|
||||||
Repository: ${{ github.repository }}
|
Repository: ${{ github.repository }}
|
||||||
Branch: ${{ github.ref_name }}
|
Branch: ${{ github.ref_name }}
|
||||||
Commit: ${{ github.sha }}" | mail -s "Deployment Successful" raghu6004@gmail.com
|
Commit: ${{ github.sha }}
|
||||||
|
ENDMAIL
|
||||||
|
curl --ssl-reqd --url smtps://smtp.gmail.com:465 --user "${{ secrets.EMAIL_USERNAME }}:${{ secrets.EMAIL_PASSWORD }}" --mail-from "${{ secrets.EMAIL_USERNAME }}" --mail-rcpt raghu6004@gmail.com --upload-file /tmp/email.txt
|
||||||
|
rm /tmp/email.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user