-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 937 Bytes
/
Copy pathtesting-emails.yml
File metadata and controls
28 lines (27 loc) · 937 Bytes
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
name: Testing send email
on:
workflow_dispatch:
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Send mail
if: always()
uses: dawidd6/action-send-mail@v2
with:
# mail server settings
server_address: smtp.gmail.com
server_port: 465
# user credentials
username: ${{ secrets.EMAIL_USERNAME }}
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: jessica.stratton@nttdata.com
# from email name
from: Github Action
- name: Test success
run: echo "job was a" + ${{ github.job }}