Remove dot from authUser.

This commit is contained in:
Thomas Bellembois
2022-12-28 12:00:44 +01:00
parent 7ecfaaa221
commit f54aac2511

View File

@@ -4,6 +4,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"os" "os"
"strings"
"github.com/go-resty/resty/v2" "github.com/go-resty/resty/v2"
) )
@@ -80,9 +81,10 @@ func main() {
} }
if devel { if devel {
authUser = "thomas.bellembois" authUser = "thomasbellembois"
} else { } else {
authUser = os.Getenv("DRONE_REPO_OWNER") authUser = os.Getenv("DRONE_REPO_OWNER")
authUser = strings.ReplaceAll(authUser, ".", "")
} }
if len(authUser) == 0 { if len(authUser) == 0 {