Skip to content

Commit 57c220a

Browse files
author
Trey Ivy
committed
default step label val
1 parent 6fc17f6 commit 57c220a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pkg/summary/summarizer.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,17 @@ func (s Summarizer) handleStructuredCommandLine(structuredCommandLine *bescore.C
834834
}
835835
}
836836

837+
// default step label to workfow + job
838+
if ghWfVal, ok := s.summary.EnvVars["GITHUB_WORKFLOW"]; ok {
839+
s.summary.StepLabel = ghWfVal
840+
if ghJobNameVal, ok := s.summary.EnvVars["GITHUB_JOB"]; ok {
841+
s.summary.StepLabel += "+" + ghJobNameVal
842+
}
843+
}
844+
837845
// Set Step Label from environment variables
838-
if ghJobNameVal, ok := s.summary.EnvVars["GITHUB_JOB"]; ok {
839-
s.summary.StepLabel = ghJobNameVal
846+
if stepLabelVal, ok := s.summary.EnvVars["BB_PORTAL_STEP_LABEL"]; ok {
847+
s.summary.StepLabel = stepLabelVal
840848
}
841849

842850
// Set SkipTargetData

0 commit comments

Comments
 (0)