Files
server-scripts/haven-notify/template/update.tmpl
Jose Henrique 45567b2242
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 10m0s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 11s
updating templates
2025-08-23 22:01:01 -03:00

29 lines
739 B
Cheetah

{{/*
Update Notification Template
Variables expected:
- .host: The host where the update occurred
- .asset: The asset being updated (Docker or k8s)
- .time: The time in seconds that the script took to run
Template Functions Available:
- formatTime: Formats time in seconds to a human-readable format
*/}}
{
"embeds": [
{
"title": "🔄 Update - {{.asset}}",
"description": "**{{.host}}** has successfully updated **{{.asset}}**! ✅",
"color": 3447003,
"fields": [
{
"name": "⏱️ Time Taken",
"value": "{{if .time}}{{.time}}{{else}}Unknown{{end}} seconds",
"inline": true
}
],
"footer": {
"text": "✨ Haven Notify ✨"
}
}
]
}