feat(cmd/joj3): support skip teapot
Some checks failed
submodules sync / sync (push) Successful in 53s
build / build (push) Failing after 1m3s
build / trigger-build-image (push) Has been skipped

This commit is contained in:
张泊明518370910136 2025-01-29 09:00:57 -05:00
parent 8e20028aac
commit 5d78017c36
GPG Key ID: D47306D7062CDA9D
2 changed files with 5 additions and 0 deletions

View File

@ -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 == "" ||

View File

@ -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"`