mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-04 10:25:17 +02:00
send email on merge failure
This commit is contained in:
parent
59b9d20dd5
commit
3ead1e99c5
1 changed files with 19 additions and 0 deletions
19
.github/workflows/merge-upstream-master.yml
vendored
19
.github/workflows/merge-upstream-master.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue