diff --git a/cmd/joj3/conf/conf.go b/cmd/joj3/conf/conf.go index c385e4e..e2a2c8f 100644 --- a/cmd/joj3/conf/conf.go +++ b/cmd/joj3/conf/conf.go @@ -20,6 +20,8 @@ type Conf struct { OutputPath string `default:"joj3_result.json"` GradingRepoName string `default:""` SkipTeapot bool `default:"true"` + ScoreboardPath string `default:"scoreboard.csv"` + FailedTablePath string `default:"failed-table.md"` Stages []struct { Name string Group string diff --git a/cmd/joj3/teapot/main.go b/cmd/joj3/teapot/main.go index b7705d4..c97e6a9 100644 --- a/cmd/joj3/teapot/main.go +++ b/cmd/joj3/teapot/main.go @@ -29,7 +29,7 @@ func Run(conf conf.Conf) error { repoName := repoParts[1] cmd := exec.Command("joint-teapot", "joj3-scoreboard", envFilePath, conf.OutputPath, actor, conf.GradingRepoName, repoName, - runNumber) // #nosec G204 + runNumber, conf.ScoreboardPath) // #nosec G204 output, err := cmd.CombinedOutput() slog.Info("joint-teapot joj3-scoreboard", "output", string(output)) if err != nil { @@ -38,7 +38,7 @@ func Run(conf conf.Conf) error { } cmd = exec.Command("joint-teapot", "joj3-failed-table", envFilePath, conf.OutputPath, actor, conf.GradingRepoName, repoName, - runNumber) // #nosec G204 + runNumber, conf.FailedTablePath) // #nosec G204 output, err = cmd.CombinedOutput() slog.Info("joint-teapot joj3-failed-table", "output", string(output)) if err != nil {