mirror of
https://framagit.org/fredix/drone-gotify
synced 2026-07-17 16:35:19 +00:00
fix variables name
This commit is contained in:
parent
ca8bec4f3f
commit
c39a2e98b8
1 changed files with 5 additions and 5 deletions
|
|
@ -8,11 +8,11 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
token := os.Getenv("PLUGIN_GOTIFY_TOKEN")
|
||||
endpoint := os.Getenv("PLUGIN_GOTIFY_ENDPOINT")
|
||||
title := os.Getenv("PLUGIN_GOTIFY_TITLE")
|
||||
message := os.Getenv("PLUGIN_GOTIFY_MESSAGE")
|
||||
priority := os.Getenv("PLUGIN_GOTIFY_PRIORITY")
|
||||
token := os.Getenv("PLUGIN_GOTIFYTOKEN")
|
||||
endpoint := os.Getenv("PLUGIN_GOTIFYENDPOINT")
|
||||
title := os.Getenv("PLUGIN_GOTIFYTITLE")
|
||||
message := os.Getenv("message")
|
||||
priority := os.Getenv("PLUGIN_GOTIFYPRIORITY")
|
||||
|
||||
resp, err := http.PostForm(endpoint + "/message?token=" + token, url.Values{"message": {message}, "title": {title}, "priority": {priority}})
|
||||
if resp != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue