fix: typo
All checks were successful
build / build (push) Successful in 1m31s
build / trigger-build-image (push) Successful in 5s

This commit is contained in:
张泊明518370910136 2024-10-07 02:06:43 -04:00
parent 33bd629b70
commit 50b45df50b
GPG Key ID: D47306D7062CDA9D

View File

@ -35,27 +35,27 @@ func Run(conf conf.Conf) error {
envFilePath, conf.OutputPath, actor, conf.GradingRepoName, repoName,
runNumber) // #nosec G204
output, err := cmd.CombinedOutput()
slog.Info("joint-teapot joj3-scoreboard", "output", string(output))
if err != nil {
slog.Error("running git command:", "err", err)
slog.Error("joint-teapot joj3-scoreboard", "err", err)
return err
}
slog.Info("joint-teapot joj3-scoreboard", "output", string(output))
cmd = exec.Command("joint-teapot", "joj3-failed-table",
envFilePath, conf.OutputPath, actor, conf.GradingRepoName, repoName,
runNumber) // #nosec G204
output, err = cmd.CombinedOutput()
slog.Info("joint-teapot joj3-failed-table", "output", string(output))
if err != nil {
slog.Error("running git command:", "err", err)
slog.Error("joint-teapot joj3-failed-table", "err", err)
return err
}
slog.Info("joint-teapot joj3-failed-table", "output", string(output))
cmd = exec.Command("joint-teapot", "joj3-create-result-issue",
envFilePath, conf.OutputPath, repoName, runNumber) // #nosec G204
output, err = cmd.CombinedOutput()
slog.Info("joint-teapot joj3-create-result-issue", "output", string(output))
if err != nil {
slog.Error("running git command:", "err", err)
slog.Error("joint-teapot joj3-create-result-issue", "err", err)
return err
}
slog.Info("joint-teapot joj3-create-result-issue", "output", string(output))
return nil
}