create-json
create-json copied to clipboard
JSON Not created correctly
I tried creating a simple JSON file with the following content:
{
"auth": {
"user": "",
"password": ""
}
}
To do this I created a repository variable containing the above JSON and then tried to call it in my deploy job. This is for a .NET application and looks as follows:
- name: Create App Settings
id: create-json
uses: jsdaniell/[email protected]
with:
name: 'appsettings.json'
json: ${{ vars.APP_SETTINGS }}
What I see being created though is a file that looks like this:
auth:
user:
password:
What's causing this formatting issue?