create-json icon indicating copy to clipboard operation
create-json copied to clipboard

JSON Not created correctly

Open mattnield opened this issue 11 months ago • 0 comments

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?

mattnield avatar Feb 27 '24 01:02 mattnield