-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.28 KB
/
basic_send_email.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: basic send email
on:
pull_request:
types: [ opened ]
push:
jobs:
basic-send-email:
runs-on: ubuntu-latest
steps:
- name: Send mail
uses: dawidd6/action-send-mail@v4
with:
# Required mail server address if not connection_url:
server_address: smtp.gmail.com
# Server port, default 25:
server_port: 465
# Optional whether this connection use TLS (default is true if server_port is 465)
secure: true
# Optional (recommended) mail server username:
username: ${{secrets.MAIL_USERNAME}}
# Optional (recommended) mail server password:
password: ${{secrets.GHA_EMAIL_SECRET}}
# Required mail subject:
subject: Github Actions job result
# Required recipients' addresses:
to: elizabeth.gugliotti@noaa.gov
# Required sender full name (address can be skipped):
from: Elizabeth # <user@example.com>
# Optional plain body:
body: Build job of ${{github.repository}} completed successfully!
# Optional unsigned/invalid certificates allowance:
ignore_cert: true
# Optional converting Markdown to HTML (set content_type to text/html too):
convert_markdown: true