diff --git a/.gitea/workflows/haven-notify.yaml b/.gitea/workflows/haven-notify.yaml index d4cae0c..f9e52ee 100644 --- a/.gitea/workflows/haven-notify.yaml +++ b/.gitea/workflows/haven-notify.yaml @@ -89,11 +89,4 @@ jobs: - name: Rollout restart haven-notify run: | cd haven-notify/deploy - kubectl --kubeconfig=kubeconfig.yaml rollout restart deployment/haven-notify - - - name: Send notification of deployment - run: | - curl -H "Content-Type: application/json" \ - -X POST \ - -d '{"title": "🚀 Haven Notify deployed!", "message": "Haven Notify has been successfully deployed and restarted."}' \ - http://haven.notify/notify + kubectl --kubeconfig=kubeconfig.yaml rollout restart deployment/haven-notify \ No newline at end of file diff --git a/haven-notify/template/backup.tmpl b/haven-notify/template/backup.tmpl index e72aa82..8fed3c0 100644 --- a/haven-notify/template/backup.tmpl +++ b/haven-notify/template/backup.tmpl @@ -33,8 +33,7 @@ Template Functions Available: ], "footer": { "text": "✨ Haven Notify ✨" - }{{if .timestamp}}, - "timestamp": "{{formatTime .timestamp}}"{{end}} + } } ] } diff --git a/haven-notify/template/error.tmpl b/haven-notify/template/error.tmpl index 9f9ab35..f1aa1e8 100644 --- a/haven-notify/template/error.tmpl +++ b/haven-notify/template/error.tmpl @@ -30,8 +30,7 @@ Variables expected: ], "footer": { "text": "✨ Haven Notify ✨" - }, - "timestamp": "{{formatTime .timestamp}}" + } } ] } \ No newline at end of file diff --git a/haven-notify/template/update.tmpl b/haven-notify/template/update.tmpl index b82cb53..2ea72c3 100644 --- a/haven-notify/template/update.tmpl +++ b/haven-notify/template/update.tmpl @@ -17,14 +17,13 @@ Template Functions Available: "fields": [ { "name": "⏱️ Time Taken", - "value": "{{if .time}}{{formatTime .time}}{{else}}Unknown{{end}} seconds", + "value": "{{if .time}}{{.time}}{{else}}Unknown{{end}} seconds", "inline": true } ], "footer": { "text": "✨ Haven Notify ✨" - }, - "timestamp": "{{formatTime .timestamp}}" + } } ] } \ No newline at end of file