mirror of
https://gitea.com/gitea/act_runner
synced 2026-05-06 01:37:57 +02:00
fix: post step failure is job failure (#85)
This commit is contained in:
@@ -92,7 +92,7 @@ func newJobExecutor(info jobInfo, sf stepFactory, rc *RunContext) common.Executo
|
||||
return nil
|
||||
}))
|
||||
|
||||
postExec := useStepLogger(rc, stepModel, stepStagePost, step.post())
|
||||
postExec := useStepLogger(rc, stepModel, stepStagePost, step.post().ThenError(setJobError))
|
||||
if postExecutor != nil {
|
||||
// run the post executor in reverse order
|
||||
postExecutor = postExec.Finally(postExecutor)
|
||||
|
||||
Reference in New Issue
Block a user