From b8bd64c37a069b96728cd159e59318c1bbd88f76 Mon Sep 17 00:00:00 2001 From: Moh Dzulfikri Maulana <106526316+Dzuuul@users.noreply.github.com> Date: Tue, 10 Mar 2026 11:51:17 +0700 Subject: [PATCH] feat: Update Telegram notification to include conditional deployment status, branch, and build duration. --- .woodpecker.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8aef072..5970759 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -51,15 +51,20 @@ steps: message_thread_id: 8 format: html message: | - 🚀 Deployment {{ build.status }}! + {{#success build.status}} + ✅ Deployment SUCCESS + {{else}} + ❌ Deployment FAILED + {{/success}} 📦 Project: {{ repo.name }} + 🌿 Branch: {{ build.branch }} + + 📝 Commit: + {{ commit.message }} - 📝 Commit: {{ commit.message }} 👤 Author: {{ commit.author }} - - 🔗 View Build Logs - when: - - event: [push] - branch: master - status: [ success, failure ] \ No newline at end of file + + 🛠 Build Details: + ⏱ Duration: {{ build.duration }}s + 🔗 View Full Logs \ No newline at end of file