From a2dd154d589013f46adcb747d0f6e40813332ff6 Mon Sep 17 00:00:00 2001 From: Martynas Sklizmantas Date: Sat, 16 Mar 2024 21:34:52 +0100 Subject: [PATCH] sends email on action --- .woodpecker.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index ccf6fffb..0e57e7b9 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -8,3 +8,23 @@ steps: username: ${CI_REPO_OWNER} password: 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 }}
+ {{ pipeline.status }}
+ {{ commit.author_email }}
+ attachments: + - log/*