Use env variables in Action.Runs.Env (#201)
* Use env variables in Action.Runs.Env * Use Action.Runs.Env in all the cases
This commit is contained in:
parent
2f395475b0
commit
b95fdb896f
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ func (sc *StepContext) runAction(actionDir string, actionPath string) common.Exe
|
||||||
actionName = filepath.Base(actionDir)
|
actionName = filepath.Base(actionDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sc.Env = mergeMaps(sc.Env, action.Runs.Env)
|
||||||
|
|
||||||
log.Debugf("type=%v actionDir=%s Workdir=%s ActionCacheDir=%s actionName=%s containerActionDir=%s", step.Type(), actionDir, rc.Config.Workdir, rc.ActionCacheDir(), actionName, containerActionDir)
|
log.Debugf("type=%v actionDir=%s Workdir=%s ActionCacheDir=%s actionName=%s containerActionDir=%s", step.Type(), actionDir, rc.Config.Workdir, rc.ActionCacheDir(), actionName, containerActionDir)
|
||||||
|
|
||||||
switch action.Runs.Using {
|
switch action.Runs.Using {
|
||||||
|
|
Loading…
Reference in a new issue