From 5080cc8687097817d35fe3690c016f1338e40f32 Mon Sep 17 00:00:00 2001 From: fredix Date: Sun, 9 Jun 2019 17:29:37 +0200 Subject: [PATCH] fix variables name --- drone-gotify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drone-gotify.go b/drone-gotify.go index ed2c6f5..3990d59 100644 --- a/drone-gotify.go +++ b/drone-gotify.go @@ -11,7 +11,7 @@ func main() { token := os.Getenv("PLUGIN_GOTIFYTOKEN") endpoint := os.Getenv("PLUGIN_GOTIFYENDPOINT") title := os.Getenv("PLUGIN_GOTIFYTITLE") - message := os.Getenv("message") + message := os.Getenv("PLUGIN_MESSAGE") priority := os.Getenv("PLUGIN_GOTIFYPRIORITY") resp, err := http.PostForm(endpoint + "/message?token=" + token, url.Values{"message": {message}, "title": {title}, "priority": {priority}})