I want to append a new key: value
pair in one of .yaml file as below:-
stages:
- template: myproject/scops-java-service-v1.yaml@codeway
parameters:
**newKey: newValue**
lintingParams:
skipSchemaValidation: false
I tried with Yaml AppendToSequence recipe, but no change as result:
recipeList:
- org.openrewrite.yaml.AppendToSequence:
sequencePath: $.stages.parameters
value: 'newKey: newValue'
# existingSequenceValues: existingValue1
# matchExistingSequenceValuesInAnyOrder: true
Also, can we chose a specific .yaml file in case we have multiple .yaml files in a single project?