1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

fix: handle env-vars case sensitive (#1493)

Closes #1488
This commit is contained in:
Markus Wolf 2022-12-07 16:31:33 +01:00 committed by GitHub
parent 68e74447c3
commit 12c0f8eb8e
3 changed files with 35 additions and 10 deletions

View file

@ -183,7 +183,7 @@ func setupEnv(ctx context.Context, step step) error {
(*step.getEnv())[k] = exprEval.Interpolate(ctx, v)
}
}
// after we have an evaluated step context, update the expresson evaluator with a new env context
// after we have an evaluated step context, update the expressions evaluator with a new env context
// you can use step level env in the with property of a uses construct
exprEval = rc.NewExpressionEvaluatorWithEnv(ctx, *step.getEnv())
for k, v := range *step.getEnv() {