bug with local action

Signed-off-by: Casey Lee <[email protected]>
This commit is contained in:
Casey Lee
2020-02-20 21:05:48 -05:00
parent e29973becf
commit fd6fe1872f
+3
View File
@@ -34,6 +34,9 @@ type RunContext struct {
func (rc *RunContext) GetEnv() map[string]string {
if rc.Env == nil {
rc.Env = mergeMaps(rc.Run.Workflow.Env, rc.Run.Job().Env)
if rc.Env["PATH"] == "" {
rc.Env["PATH"] = "/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"
}
}
return rc.Env
}