Skip to content

Store json in a file, without needing to worry about escaping the string properly

License

Notifications You must be signed in to change notification settings

devops-actions/json-to-file

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

OpenSSF Scorecard build-test

Purpose

Write JSON from to a file, without having to worry about string escaping on a bash script.

Usage

- uses: devops-actions/[email protected]
  with:
    json: '{"test": "test"}'
    filename: 'test.json'