Creating "!reference" tag for array #2116
Answered
by
mikefarah
robross0606
asked this question in
Q&A
-
|
I need to output some YAML from scratch that looks like this: rules:
- !reference [.artifact-rules, rules]I tried using the Attempting to tag the array results in wiping out the contents of the array for reasons I don't understand: rules:
-However, running without the tag produces the content, though not in the array style I would like: rules:
- - artifact-rules
- rulesIs any of this possible with |
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Aug 5, 2024
Replies: 1 comment 1 reply
-
|
I think I might have figured out at least one way to do it: Yields rules:
- !reference
- .artifact-rules
- rulesStill not sure if there's some way to change the array style. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the style tag to change the array style: