Commit 57c220a Trey Ivy
committed
1 parent 6fc17f6 commit 57c220a Copy full SHA for 57c220a
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -834,9 +834,17 @@ func (s Summarizer) handleStructuredCommandLine(structuredCommandLine *bescore.C
834
834
}
835
835
}
836
836
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
+
837
845
// 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
840
848
}
841
849
842
850
// Set SkipTargetData
You can’t perform that action at this time.
0 commit comments