Update .yml files

This commit is contained in:
Keannu Christian Bernasol 2025-03-27 02:29:24 +08:00
parent 2a976aeeb7
commit 35b104660d
2 changed files with 5 additions and 11 deletions

View file

@ -36,7 +36,7 @@ steps:
recipients: recipients:
- from_secret: SMTP_SELFHOSTED_EMAIL_TO_1 - from_secret: SMTP_SELFHOSTED_EMAIL_TO_1
level: info level: info
recipients_only: false recipients_only: true
content: content:
subject: "[{{ pipeline.status }}] {{ repo.full_name }} ({{ commit.branch }} - {{ commit.sha[0:8] }}" subject: "[{{ pipeline.status }}] {{ repo.full_name }} ({{ commit.branch }} - {{ commit.sha[0:8] }}"
body: | body: |
@ -46,7 +46,4 @@ steps:
attachments: attachments:
- log/* - log/*
when: when:
- branch: master - status: [success, failure]
- status:
- success
- failure

View file

@ -14,7 +14,7 @@ steps:
- branch: master - branch: master
event: push event: push
- name: mail_success - name: mail_success
image: deblan/woodpecker-email" image: deblan/woodpecker-email
settings: settings:
dsn: dsn:
- from_secret: SMTP_SELFHOSTED_DSN - from_secret: SMTP_SELFHOSTED_DSN
@ -27,7 +27,7 @@ steps:
recipients: recipients:
- from_secret: SMTP_SELFHOSTED_EMAIL_TO_1 - from_secret: SMTP_SELFHOSTED_EMAIL_TO_1
level: success level: success
recipients_only: false recipients_only: true
content: content:
subject: "[{{ pipeline.status }}] {{ repo.full_name }} ({{ commit.branch }} - {{ commit.sha[0:8] }}" subject: "[{{ pipeline.status }}] {{ repo.full_name }} ({{ commit.branch }} - {{ commit.sha[0:8] }}"
body: | body: |
@ -37,7 +37,4 @@ steps:
attachments: attachments:
- log/* - log/*
when: when:
- branch: master - status: [success, failure]
- status:
- success
- failure