feat(cmd/joj3): remove triggering actor for teapot [force build]
This commit is contained in:
		
							parent
							
								
									9845518d9a
								
							
						
					
					
						commit
						23d586634a
					
				
							
								
								
									
										22
									
								
								cmd/joj3/env/env.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								cmd/joj3/env/env.go
									
									
									
									
										vendored
									
									
								
							|  | @ -7,17 +7,16 @@ import ( | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type Attribute struct { | 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 | 	Workflow   string | ||||||
| 	Workflow        string | 	RunNumber  string | ||||||
| 	RunNumber       string | 	ActorName  string | ||||||
| 	ActorName       string | 	ActorID    string | ||||||
| 	ActorID         string |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| var Attr Attribute | var Attr Attribute | ||||||
|  | @ -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") | ||||||
|  |  | ||||||
|  | @ -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, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user