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

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

@ -7,17 +7,16 @@ import (
)
type Attribute struct {
ConfName string
RunID string
Actor string
TriggeringActor string
Repository string
Sha string
Ref string
Workflow string
RunNumber string
ActorName string
ActorID string
ConfName string
RunID string
Actor string
Repository string
Sha string
Ref string
Workflow string
RunNumber string
ActorName string
ActorID string
}
var Attr Attribute
@ -34,7 +33,6 @@ func init() {
combined ^= (combined << 16)
Attr.RunID = fmt.Sprintf("%08X", combined&0xFFFFFFFF)
Attr.Actor = os.Getenv("GITHUB_ACTOR")
Attr.TriggeringActor = os.Getenv("GITHUB_TRIGGERING_ACTOR")
Attr.Repository = os.Getenv("GITHUB_REPOSITORY")
Attr.Sha = os.Getenv("GITHUB_SHA")
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.RunNumber, conf.Teapot.ScoreboardPath,
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),
skipIssueArg, skipScoreboardArg,
skipFailedTableArg, submitterInIssueTitleArg,