feat: Update Telegram notification to include conditional deployment status, branch, and build duration.
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -51,15 +51,20 @@ steps:
|
|||||||
message_thread_id: 8
|
message_thread_id: 8
|
||||||
format: html
|
format: html
|
||||||
message: |
|
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>📦 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>👤 Author:</b> {{ commit.author }}
|
||||||
|
|
||||||
<b>🔗 <a href="{{ build.link }}">View Build Logs</a></b>
|
<b>🛠 Build Details:</b>
|
||||||
when:
|
⏱ <b>Duration:</b> {{ build.duration }}s
|
||||||
- event: [push]
|
🔗 <a href="{{ build.link }}">View Full Logs</a>
|
||||||
branch: master
|
|
||||||
status: [ success, failure ]
|
|
||||||
Reference in New Issue
Block a user