From f54aac25111c7c78e32f01b317b528eb7354e819 Mon Sep 17 00:00:00 2001 From: Thomas Bellembois Date: Wed, 28 Dec 2022 12:00:44 +0100 Subject: [PATCH] Remove dot from authUser. --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index dc2b656..d0bfe3c 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "flag" "fmt" "os" + "strings" "github.com/go-resty/resty/v2" ) @@ -80,9 +81,10 @@ func main() { } if devel { - authUser = "thomas.bellembois" + authUser = "thomasbellembois" } else { authUser = os.Getenv("DRONE_REPO_OWNER") + authUser = strings.ReplaceAll(authUser, ".", "") } if len(authUser) == 0 {