Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Not created correctly #9

Open
mattnield opened this issue Feb 27, 2024 · 0 comments
Open

JSON Not created correctly #9

mattnield opened this issue Feb 27, 2024 · 0 comments

Comments

@mattnield
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant