Add needs job output (#629)

* Add outputs field to job model

* Add output interpolation for jobs

* Add otto config reference for interpolated job output values into 'needs' context

* Add output interpolation call after job has completed.

* gofmt

* Remove whitespace

* goimports

Co-authored-by: Casey Lee <[email protected]>
This commit is contained in:
Phil StoryandCasey Lee authored and GitHub committed 2021-07-01 15:20:20 +00:00
1 parent 1cf422e411
commit dcbd5837af
5 files changed
+76 -1

No files matched your search

+1 -1
View File
@@ -262,7 +262,7 @@ func (rc *RunContext) newStepExecutor(step *model.Step) common.Executor {
rc.ExprEval = exprEval
common.Logger(ctx).Infof("\u2B50 Run %s", sc.Step)
err = sc.Executor()(ctx)
err = sc.Executor().Then(sc.interpolateOutputs())(ctx)
if err == nil {
common.Logger(ctx).Infof(" \u2705 Success - %s", sc.Step)
} else {