diff --git a/actions/run_action.go b/actions/run_action.go index af7fc797..171c70b7 100644 --- a/actions/run_action.go +++ b/actions/run_action.go @@ -160,6 +160,11 @@ func (run *RunAction) doRun(context debos.DebosContext) error { } } + /* For PostProcess commands, set cwd to artifactdir */ + if run.PostProcess { + cmd.Dir = context.Artifactdir + } + return cmd.Run(label, cmdline...) }