You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow values inside collection-type variables to reference one another #1544
The issues above were fixed in #1526. However, this still left the issue described in #1415 (comment) unresolved. This issue is to track the functionality described there.
It is possible to use variables inside other collection-type variables. However, you are not currently able to refer to a key within the same collection-type variable in another key. For example:
version: '3'vars:
foo: "foo"bar:
works: "{{.foo}}"# Refers to a value in a different variablebaz:
qux: "qux"works: "{{.bar.works}}"# Refers to a nested value in a different variablefails: "{{.baz.qux}}"# Refers to a nested value in THE SAME variabletasks:
works:
cmds:
- echo {{.bar.works}}
- echo {{.baz.works}}fails:
cmds:
- echo {{.baz.fails}}
Activity