-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 871 Bytes
/
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
name: Send Email Example
on:
push:
branches:
- main # Trigger on push to the main branch
jobs:
send_email:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository (optional, depending on your workflow)
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Send an email
- name: Send Email
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com # SMTP server
server_port: 465 # SMTP port (SSL)
username: dhnt6847@gmail.com
password: taimrdahan
subject: "GitHub Actions Email"
body: "This is a test email sent by GitHub Actions."
to: "tamir.dahan@ness-tech.co.il" # Recipient email
from: "tamir.dahan@ness-tech.co.il" # Sender email