sends email on action

This commit is contained in:
Martynas Sklizmantas 2024-03-16 21:34:52 +01:00
parent 5fc07c6604
commit a2dd154d58

View file

@ -8,3 +8,23 @@ steps:
username: ${CI_REPO_OWNER} username: ${CI_REPO_OWNER}
password: password:
from_secret: cb_token from_secret: cb_token
- name: mail
image: deblan/woodpecker-email
settings:
dsn:
from_secret: smtp_dsn
from:
address:
from_secret: smtp_from
name: "Woodpecker"
recipients:
from_secret: smtp_recipients
recipients_only: false
content:
subject: "[{{ pipeline.status }}] {{ repo.full_name }} ({{ commit.branch }} - {{ commit.sha[0:8] }}"
body: |
{{ commit.sha }}<br>
{{ pipeline.status }}<br>
{{ commit.author_email }}<br>
attachments:
- log/*