Skip to content

Commit

Permalink
fix: make step output more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
KnisterPeter authored and github-actions committed May 19, 2022
1 parent ec25830 commit 28e739e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/runner/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (s stepStage) String() string {
case stepStagePre:
return "Pre"
case stepStageMain:
return "Run"
return "Main"
case stepStagePost:
return "Post"
}
Expand Down Expand Up @@ -90,14 +90,14 @@ func runStepExecutor(step step, stage stepStage, executor common.Executor) commo
if strings.Contains(stepString, "::add-mask::") {
stepString = "add-mask command"
}
common.Logger(ctx).Infof("\u2B50 %s %s", stage, stepString)
common.Logger(ctx).Infof("\u2B50 Run %s %s", stage, stepString)

err = executor(ctx)

if err == nil {
common.Logger(ctx).Infof(" \u2705 Success - %s", stepString)
common.Logger(ctx).Infof(" \u2705 Success - %s %s", stage, stepString)
} else {
common.Logger(ctx).Errorf(" \u274C Failure - %s", stepString)
common.Logger(ctx).Errorf(" \u274C Failure - %s %s", stage, stepString)

rc.StepResults[rc.CurrentStep].Outcome = model.StepStatusFailure
if stepModel.ContinueOnError {
Expand Down

0 comments on commit 28e739e

Please sign in to comment.