summaryrefslogtreecommitdiffstats
path: root/pkg/runner/action.go
diff options
context:
space:
mode:
authorEarl Warren <contact@earl-warren.org>2024-11-21 11:33:07 +0100
committerEarl Warren <contact@earl-warren.org>2024-11-21 13:18:04 +0100
commitfc43985812e23050b5b2f99fa62b4f78d56ce47c (patch)
tree5d79081f23c39885d84672442f3893d2ac003600 /pkg/runner/action.go
parentMerge pull request 'ci: use `go.mod` to install go' (#66) from ci/use-go-mod ... (diff)
downloadforgejo-act-fc43985812e23050b5b2f99fa62b4f78d56ce47c.tar.xz
forgejo-act-fc43985812e23050b5b2f99fa62b4f78d56ce47c.zip
fix: log skipped job and step result as info instead of debug
This allows the Forgejo runner to obtain the job result from the logs even when it is not in debug mode.
Diffstat (limited to 'pkg/runner/action.go')
-rw-r--r--pkg/runner/action.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/runner/action.go b/pkg/runner/action.go
index 416e5e4..fd52c0b 100644
--- a/pkg/runner/action.go
+++ b/pkg/runner/action.go
@@ -619,17 +619,17 @@ func shouldRunPostStep(step actionStep) common.Conditional {
stepResult := stepResults[step.getStepModel().ID]
if stepResult == nil {
- log.WithField("stepResult", model.StepStatusSkipped).Debugf("skipping post step for '%s'; step was not executed", step.getStepModel())
+ log.WithField("stepResult", model.StepStatusSkipped).Infof("skipping post step for '%s'; step was not executed", step.getStepModel())
return false
}
if stepResult.Conclusion == model.StepStatusSkipped {
- log.WithField("stepResult", model.StepStatusSkipped).Debugf("skipping post step for '%s'; main step was skipped", step.getStepModel())
+ log.WithField("stepResult", model.StepStatusSkipped).Infof("skipping post step for '%s'; main step was skipped", step.getStepModel())
return false
}
if step.getActionModel() == nil {
- log.WithField("stepResult", model.StepStatusSkipped).Debugf("skipping post step for '%s': no action model available", step.getStepModel())
+ log.WithField("stepResult", model.StepStatusSkipped).Infof("skipping post step for '%s': no action model available", step.getStepModel())
return false
}