From c3c372d2e770138b92d0ff65a8333e9d65939d8b Mon Sep 17 00:00:00 2001 From: vladimirkutkovoy Date: Wed, 11 Sep 2024 13:38:44 +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 | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0b2249d..07913fd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,13 +7,31 @@ steps: commands: - npm install - npm run build -steps: -- name: send telegram notification +- name: telegram notification image: appleboy/drone-telegram settings: - token: telegram_token - to: telegram_to - message_file: message_file.tpl - template_vars: - env: testing - app: MyApp \ No newline at end of file + token: + from_secret: telegram_token + to: + from_secret: telegram_to + format: markdown + when: + status: + - success + - failure + 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}} \ No newline at end of file