adding test containers
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 4s
Haven Notify Build and Deploy / Build Haven Notify Image (pull_request) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Test Haven Notify (pull_request) Has been cancelled
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 4s
Haven Notify Build and Deploy / Build Haven Notify Image (pull_request) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Test Haven Notify (pull_request) Has been cancelled
This commit is contained in:
@@ -1,23 +1,13 @@
|
||||
{{/*
|
||||
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}}**! ✅",
|
||||
"title": {{json (printf "🔄 Update - %s" .Asset)}},
|
||||
"description": {{json (printf "**%s** has successfully updated **%s**! ✅" .Host .Asset)}},
|
||||
"color": 3447003,
|
||||
"fields": [
|
||||
{
|
||||
"name": "⏱️ Time Taken",
|
||||
"value": "{{if .time}}{{.time}}{{else}}Unknown{{end}} seconds",
|
||||
"value": {{json (formatSeconds .Time)}},
|
||||
"inline": true
|
||||
}
|
||||
],
|
||||
@@ -26,4 +16,4 @@ Template Functions Available:
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user