Compare commits

...

2 Commits

Author SHA1 Message Date
5d78017c36
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
2025-01-29 09:00:57 -05:00
8e20028aac
feat(cmd/joj3): remove teapot pretty exception env var
as it has already been set in teapot
2025-01-29 08:59:46 -05:00
2 changed files with 5 additions and 1 deletions

View File

@ -21,8 +21,11 @@ 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)
os.Setenv("_TYPER_STANDARD_TRACEBACK", "1")
if env.Attr.Actor == "" ||
env.Attr.Repository == "" ||
strings.Count(env.Attr.Repository, "/") != 1 ||

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