mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
bug with local action
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
eb7e10e86b
commit
673c7e4262
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ type RunContext struct {
|
||||||
func (rc *RunContext) GetEnv() map[string]string {
|
func (rc *RunContext) GetEnv() map[string]string {
|
||||||
if rc.Env == nil {
|
if rc.Env == nil {
|
||||||
rc.Env = mergeMaps(rc.Run.Workflow.Env, rc.Run.Job().Env)
|
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
|
return rc.Env
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue