From bd0642c2272ba7327ff3b3495c320e79ac366636 Mon Sep 17 00:00:00 2001 From: vladimirkutkovoy Date: Wed, 11 Sep 2024 11:06:34 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b093093..8a38f4e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,4 +6,35 @@ steps: image: node commands: - npm install - - npm run build \ No newline at end of file + - npm run build + + + pipeline: + telegram-notification: + image: appleboy/drone-telegram + secrets: [telegram_token, telegram_to] + when: + status: [success, failure] + format: markdown + message: > + {{#success build.status}} + ✅ Build #{{build.number}} of `{{repo.name}}` succeeded. + + 📝 Commit by {{commit.author}} on `{{commit.branch}}`: + + ``` + {{commit.message}} + ``` + + 🌐 {{ build.link }} + {{else}} + ❌ Build #{{build.number}} of `{{repo.name}}` failed. + + 📝 Commit by {{commit.author}} on `{{commit.branch}}`: + + ``` + {{commit.message}} + ``` + + 🌐 {{ build.link }} + {{/success}}