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
You can use the eval operator to dynamically evaluate expressions - it gets a little complex for what you're trying to do, but if I change the format to this:
. as $i saves a pointer to the root doc, we'll need this later
(.. | select(tag == "!!reference")) matches all the nodes with tag !!reference
This is where it gets a little tricky. We want to call eval against the root document, passing in the current value of the node as the expression. . as $x saves the current value as $x, then we pipe $i into eval, with $x as the param
I have a following yaml file, utilizing format somewhat similar to reference tags in gitlab.
My goal is to substitute these reference tags with values from placeholders like that.
Couldn't find something on this in documentation.
The text was updated successfully, but these errors were encountered: