mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
fix: set composite outputs on failure (#945)
fix: conclusion and outcome after error with failure condition fix: continue-on-error doesn't work correctly for composite actions
This commit is contained in:
parent
61c66784dd
commit
2ee208a335
5 changed files with 32 additions and 5 deletions
|
@ -299,7 +299,9 @@ func (rc *RunContext) CompositeExecutor() common.Executor {
|
|||
}
|
||||
|
||||
steps = append(steps, common.JobError)
|
||||
return common.NewPipelineExecutor(steps...)
|
||||
return func(ctx context.Context) error {
|
||||
return common.NewPipelineExecutor(steps...)(common.WithJobErrorContainer(ctx))
|
||||
}
|
||||
}
|
||||
|
||||
func (rc *RunContext) newStepExecutor(step *model.Step) common.Executor {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue