Skip to content

Commit

Permalink
default step label val
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Ivy committed Nov 21, 2024
1 parent 6fc17f6 commit 57c220a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkg/summary/summarizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,17 @@ func (s Summarizer) handleStructuredCommandLine(structuredCommandLine *bescore.C
}
}

// default step label to workfow + job
if ghWfVal, ok := s.summary.EnvVars["GITHUB_WORKFLOW"]; ok {
s.summary.StepLabel = ghWfVal
if ghJobNameVal, ok := s.summary.EnvVars["GITHUB_JOB"]; ok {
s.summary.StepLabel += "+" + ghJobNameVal
}
}

// Set Step Label from environment variables
if ghJobNameVal, ok := s.summary.EnvVars["GITHUB_JOB"]; ok {
s.summary.StepLabel = ghJobNameVal
if stepLabelVal, ok := s.summary.EnvVars["BB_PORTAL_STEP_LABEL"]; ok {
s.summary.StepLabel = stepLabelVal
}

// Set SkipTargetData
Expand Down

0 comments on commit 57c220a

Please sign in to comment.