From e58082bf384382c286dcfaf070712254fa5cc5bb Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 19 Aug 2023 22:47:29 +0200 Subject: [PATCH] feat(ci): Notify on build failure --- .gitlint | 2 +- .woodpecker.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitlint b/.gitlint index 316d017..1fc47b9 100644 --- a/.gitlint +++ b/.gitlint @@ -7,7 +7,7 @@ line-length=72 [title-trailing-punctuation] [title-hard-tab] [title-match-regex] -regex=^((feat|fix|chore|refactor|docs|release|test)\((meta|tests|style|docs|xep|core|example|all|flake)+(,(meta|tests|style|docs|xep|core|example|all|flake))*\)|release): [A-Z0-9].*$ +regex=^((feat|fix|chore|refactor|docs|release|test)\((meta|tests|style|docs|xep|core|example|all|flake|ci)+(,(meta|tests|style|docs|xep|core|example|all|flake|ci))*\)|release): [A-Z0-9].*$ [body-trailing-whitespace] diff --git a/.woodpecker.yml b/.woodpecker.yml index baada20..cf87767 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,3 +1,6 @@ +when: + branch: master + pipeline: # Check moxxmpp moxxmpp-lint: @@ -26,3 +29,15 @@ pipeline: # - cd packages/moxxmpp # - dart pub get # - dart test + notify: + image: git.polynom.me/papatutuwawa/woodpecker-xmpp + settings: + xmpp_tls: 1 + xmpp_is_muc: 1 + xmpp_recipient: moxxy-build@muc.moxxy.org + xmpp_alias: 2Bot + secrets: [ xmpp_jid, xmpp_password, xmpp_server ] + when: + status: + - failure + event: [push, tag]