steps:
- name: Read package.json
id: package
uses: juliangruber/read-file-action@v1
with:
path: ./package.json
- name: Echo package.json
run: echo "${{ steps.package.outputs.content }}"
returns the JSON string. However I'm not sure how to retrieve the values of properties in the below array
{
[
{
"Accountname": "Account1",
"contacts": [
"contact1","contact2"
]
},
{
"Accountname": "Account2",
"contacts": [
"contact3","contact4"
]
}
]
}