diff --git a/cmd/main.go b/cmd/main.go index f779bd58..977d2748 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -220,7 +220,7 @@ func defaultNoColor() bool { // true for many CI environments which support color output. So instead, we // try to detect these CI environments via their environment variables. // This code is based on https://github.com/jwalton/go-supportscolor - if _, exists := os.LookupEnv("CI"); exists { + if value, exists := os.LookupEnv("CI"); exists { var ciEnvNames = []string{ "APPVEYOR", "BUILDKITE", @@ -239,6 +239,9 @@ func defaultNoColor() bool { if os.Getenv("CI_NAME") == "codeship" { return false } + if value == "woodpecker" { + return false + } } if _, exists := os.LookupEnv("TEAMCITY_VERSION"); exists { return false