feat(cmd/joj3): support skip teapot
This commit is contained in:
parent
8e20028aac
commit
5d78017c36
|
@ -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 == "" ||
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user