chore(healthcheck): error log teapot check env
Some checks failed
submodules sync / sync (push) Failing after 22s
build / build (push) Successful in 1m13s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2024-12-05 18:51:12 -05:00
parent c2bb81ee3d
commit 9246107da9
GPG Key ID: D47306D7062CDA9D

View File

@ -68,13 +68,13 @@ func init() {
func prepareTeapotCheck() (
confObj *conf.Conf, groups []string, actor, repoName string, err error,
) {
slog.Debug("teapot check prepare start", "env", os.Environ())
actor = os.Getenv("GITHUB_ACTOR")
repository := os.Getenv("GITHUB_REPOSITORY")
if actor == "" ||
repository != "" ||
strings.Count(repository, "/") != 1 ||
confPath != "" {
slog.Error("teapot env not set", "actor", actor, "repository", repository, "confPath", confPath, "env", os.Environ())
err = fmt.Errorf("teapot env not set")
return
}