bug with local action
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
e29973becf
commit
fd6fe1872f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue