You've already forked go-semantic-release
chore(internal/releaser): add further log messages
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
||||
@@ -27,6 +28,8 @@ func GetAccessToken(providerName string) (string, error) {
|
||||
var exists bool
|
||||
envName := fmt.Sprintf("%s_ACCESS_TOKEN", strings.ToUpper(providerName))
|
||||
|
||||
log.Debugf("check if %s environment variable is set", envName)
|
||||
|
||||
if token, exists = os.LookupEnv(envName); !exists {
|
||||
return "", fmt.Errorf("Could not find %s in the enviroment variables. Please check if it is set", envName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user