To override an array value in GitHub Actions for the ARMTemplateParametersForFactory.json
, you need to ensure the array is formatted correctly as a JSON string. The error you are encountering happens because the array is not properly escaped as a string in the GitHub Actions YAML file.
parameters: ./ARM/ARMTemplateParametersForFactory.json factoryName=test001 sta_properties_fqdns="[\"test002\"]"
In this example, sta_properties_fqdns
is being passed as a JSON array with the value ["test002"]
. The inner quotes are escaped so that it is recognized as a valid JSON array.
Try this format and it should resolve the parsing error.