diff --git a/cmd/joj3/teapot/run.go b/cmd/joj3/teapot/run.go index f4b79f6..568036c 100644 --- a/cmd/joj3/teapot/run.go +++ b/cmd/joj3/teapot/run.go @@ -21,6 +21,10 @@ type RunResult struct { func Run(conf *conf.Conf) ( runResult RunResult, err error, ) { + if conf.Teapot.Skip { + slog.Info("teapot skip") + return + } os.Setenv("LOG_FILE_PATH", conf.Teapot.LogPath) if env.Attr.Actor == "" || env.Attr.Repository == "" || diff --git a/internal/conf/model.go b/internal/conf/model.go index 5f09458..6add917 100644 --- a/internal/conf/model.go +++ b/internal/conf/model.go @@ -41,6 +41,7 @@ type Conf struct { PostStages []ConfStage } Teapot struct { + Skip bool `default:"false"` LogPath string `default:"/home/tt/.cache/joint-teapot-debug.log"` EnvFilePath string `default:"/home/tt/.config/teapot/teapot.env"` ScoreboardPath string `default:"scoreboard.csv"`