diff --git a/actions/run_action.go b/actions/run_action.go index c62a028a..1e2ea99b 100644 --- a/actions/run_action.go +++ b/actions/run_action.go @@ -159,6 +159,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...) }