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:
Juan Eugenio Abadie 2020-04-19 15:29:34 -03:00 committed by GitHub
parent 2f395475b0
commit b95fdb896f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {