mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
Interpolate with:
inputs (#511)
This commit is contained in:
parent
02c64bbcbf
commit
30dc143809
2 changed files with 3 additions and 2 deletions
|
@ -343,8 +343,9 @@ func (sc *StepContext) vmInputs() func(*otto.Otto) {
|
|||
}
|
||||
|
||||
for k, v := range sc.Step.With {
|
||||
inputs[k] = v
|
||||
inputs[k] = sc.RunContext.NewExpressionEvaluator().Interpolate(v)
|
||||
}
|
||||
|
||||
return func(vm *otto.Otto) {
|
||||
_ = vm.Set("inputs", inputs)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue