feat: Update Telegram notification to include conditional deployment status, branch, and build duration.
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Moh Dzulfikri Maulana
2026-03-10 11:51:17 +07:00
parent 7882222d65
commit b8bd64c37a

View File

@@ -51,15 +51,20 @@ steps:
message_thread_id: 8
format: html
message: |
<b>🚀 Deployment {{ build.status }}!</b>
{{#success build.status}}
✅ <b>Deployment SUCCESS</b>
{{else}}
❌ <b>Deployment FAILED</b>
{{/success}}
<b>📦 Project:</b> <code>{{ repo.name }}</code>
<b>🌿 Branch:</b> <code>{{ build.branch }}</code>
<b>📝 Commit:</b>
<i>{{ commit.message }}</i>
<b>📝 Commit:</b> <i>{{ commit.message }}</i>
<b>👤 Author:</b> {{ commit.author }}
<b>🔗 <a href="{{ build.link }}">View Build Logs</a></b>
when:
- event: [push]
branch: master
status: [ success, failure ]
<b>🛠 Build Details:</b>
⏱ <b>Duration:</b> {{ build.duration }}s
🔗 <a href="{{ build.link }}">View Full Logs</a>