Skip to content
file-text

GitHub Action

json-to-file

v1.0.4 Latest version

json-to-file

file-text

json-to-file

Write json from variable to file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: json-to-file

uses: devops-actions/[email protected]

Learn more about this action in devops-actions/json-to-file

Choose a version

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'