1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-04 18:35:17 +02:00

send email on merge failure

This commit is contained in:
François Darveau 2021-06-26 18:30:05 -04:00
parent 59b9d20dd5
commit 3ead1e99c5

View file

@ -41,3 +41,22 @@ jobs:
# Step 4: Print a helpful timestamp for your records (not required, just nice) # Step 4: Print a helpful timestamp for your records (not required, just nice)
- name: Timestamp - name: Timestamp
run: date run: date
- name: Send email
if: failure()
uses: dawidd6/action-send-mail@v3.2.0
with:
# mail server settings
server_address: smtp.gmail.com
server_port: 465
# user credentials
username: ${{ secrets.EMAIL }}
password: ${{ secrets.EMAIL_PASSWORD }}
# email subject
subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }}
# email body as text
body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
# comma-separated string, send email to
to: ${{ secrets.EMAIL }}
# from email name
from: Github Action