mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-02 11:42:15 +00:00
- Skip invalid webhooks
- Build cache based on row data instead of entire row - Compare columns instead of entire row - Removed commitHash check and instead just processes on succesfull git pull - No more entire file dumps!
This commit is contained in:
parent
ae11cc53a3
commit
86eef8cc8e
5 changed files with 102 additions and 132 deletions
|
@ -33,6 +33,10 @@ func postToSlack() {
|
|||
}
|
||||
|
||||
for _, webhook := range SlackWebhooks {
|
||||
if webhook == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
err := slack.Send(webhook, "", payload)
|
||||
if len(err) > 0 {
|
||||
fmt.Print(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue