1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

fix: interpolate env for step actions (#872)

Signed-off-by: hackercat <me@hackerc.at>
This commit is contained in:
Ryan 2021-11-13 00:21:18 +01:00 committed by GitHub
parent 2e264d8df8
commit f9acfb70a1
4 changed files with 10 additions and 0 deletions

View file

@ -479,6 +479,11 @@ func (sc *StepContext) runAction(actionDir string, actionPath string, localActio
sc.Env = mergeMaps(sc.Env, action.Runs.Env)
ee := sc.NewExpressionEvaluator()
for k, v := range sc.Env {
sc.Env[k] = ee.Interpolate(v)
}
log.Debugf("type=%v actionDir=%s actionPath=%s workdir=%s actionCacheDir=%s actionName=%s containerActionDir=%s", step.Type(), actionDir, actionPath, rc.Config.Workdir, rc.ActionCacheDir(), actionName, containerActionDir)
maybeCopyToActionDir := func() error {