bug with local action

Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Casey Lee 2020-02-12 00:21:51 -08:00
parent e29973becf
commit fd6fe1872f
No known key found for this signature in database
GPG key ID: 1899120ECD0A1784

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
}