feat(cmd/joj3): remove triggering actor for teapot [force build]
All checks were successful
submodules sync / sync (push) Successful in 40s
build / build (push) Successful in 1m23s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2024-11-25 02:12:47 -05:00
parent 9845518d9a
commit 23d586634a
GPG Key ID: D47306D7062CDA9D
2 changed files with 11 additions and 13 deletions

2
cmd/joj3/env/env.go vendored
View File

@ -10,7 +10,6 @@ type Attribute struct {
ConfName string ConfName string
RunID string RunID string
Actor string Actor string
TriggeringActor string
Repository string Repository string
Sha string Sha string
Ref string Ref string
@ -34,7 +33,6 @@ func init() {
combined ^= (combined << 16) combined ^= (combined << 16)
Attr.RunID = fmt.Sprintf("%08X", combined&0xFFFFFFFF) Attr.RunID = fmt.Sprintf("%08X", combined&0xFFFFFFFF)
Attr.Actor = os.Getenv("GITHUB_ACTOR") Attr.Actor = os.Getenv("GITHUB_ACTOR")
Attr.TriggeringActor = os.Getenv("GITHUB_TRIGGERING_ACTOR")
Attr.Repository = os.Getenv("GITHUB_REPOSITORY") Attr.Repository = os.Getenv("GITHUB_REPOSITORY")
Attr.Sha = os.Getenv("GITHUB_SHA") Attr.Sha = os.Getenv("GITHUB_SHA")
Attr.Ref = os.Getenv("GITHUB_REF") Attr.Ref = os.Getenv("GITHUB_REF")

View File

@ -58,7 +58,7 @@ func Run(conf *conf.Conf) (teapotResult TeapotResult, err error) {
env.Attr.Actor, conf.Teapot.GradingRepoName, repoName, env.Attr.Actor, conf.Teapot.GradingRepoName, repoName,
env.Attr.RunNumber, conf.Teapot.ScoreboardPath, env.Attr.RunNumber, conf.Teapot.ScoreboardPath,
conf.Teapot.FailedTablePath, conf.Teapot.FailedTablePath,
conf.Name, env.Attr.Sha, env.Attr.RunID, env.Attr.TriggeringActor, conf.Name, env.Attr.Sha, env.Attr.RunID,
"--max-total-score", strconv.Itoa(conf.MaxTotalScore), "--max-total-score", strconv.Itoa(conf.MaxTotalScore),
skipIssueArg, skipScoreboardArg, skipIssueArg, skipScoreboardArg,
skipFailedTableArg, submitterInIssueTitleArg, skipFailedTableArg, submitterInIssueTitleArg,