chore(healthcheck): error log teapot check env
This commit is contained in:
parent
c2bb81ee3d
commit
9246107da9
|
@ -68,13 +68,13 @@ func init() {
|
||||||
func prepareTeapotCheck() (
|
func prepareTeapotCheck() (
|
||||||
confObj *conf.Conf, groups []string, actor, repoName string, err error,
|
confObj *conf.Conf, groups []string, actor, repoName string, err error,
|
||||||
) {
|
) {
|
||||||
slog.Debug("teapot check prepare start", "env", os.Environ())
|
|
||||||
actor = os.Getenv("GITHUB_ACTOR")
|
actor = os.Getenv("GITHUB_ACTOR")
|
||||||
repository := os.Getenv("GITHUB_REPOSITORY")
|
repository := os.Getenv("GITHUB_REPOSITORY")
|
||||||
if actor == "" ||
|
if actor == "" ||
|
||||||
repository != "" ||
|
repository != "" ||
|
||||||
strings.Count(repository, "/") != 1 ||
|
strings.Count(repository, "/") != 1 ||
|
||||||
confPath != "" {
|
confPath != "" {
|
||||||
|
slog.Error("teapot env not set", "actor", actor, "repository", repository, "confPath", confPath, "env", os.Environ())
|
||||||
err = fmt.Errorf("teapot env not set")
|
err = fmt.Errorf("teapot env not set")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user