From b95fdb896f2e4507f79b28b4ae29d1214b320766 Mon Sep 17 00:00:00 2001 From: Juan Eugenio Abadie Date: Sun, 19 Apr 2020 15:29:34 -0300 Subject: [PATCH] Use env variables in Action.Runs.Env (#201) * Use env variables in Action.Runs.Env * Use Action.Runs.Env in all the cases --- pkg/runner/step_context.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/runner/step_context.go b/pkg/runner/step_context.go index 7c30c67..bfa9b0d 100644 --- a/pkg/runner/step_context.go +++ b/pkg/runner/step_context.go @@ -257,6 +257,8 @@ func (sc *StepContext) runAction(actionDir string, actionPath string) common.Exe 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) switch action.Runs.Using {