From 7b6051a2b9579bd832127549a99900e2889c9d35 Mon Sep 17 00:00:00 2001 From: gregandev Date: Tue, 20 Dec 2022 14:52:25 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.drone.yml b/.drone.yml index 703c7ef..ea0f6b4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,3 +45,24 @@ steps: from_secret: RSYNC_USER key: from_secret: RSYNC_SSH_KEY + +- name: notification + image: appleboy/drone-telegram + settings: + token: + from_secret: TELEGRAM_TOKEN + to: + from_secret: TELEGRAM_USERID + when: + status: [ success, failure ] + message: > + 📝 {{repo.name}} / {{commit.branch}} - {{commit.message}} + {{#success build.status}} + ✅ succeeded for 👷‍♂️ build {{build.number}} + {{else}} + 🛑 failed for 👷‍♂️ build {{build.number}} + {{/success}} + when: + status: + - failure + - success