Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
file-text

GitHub Action

json-to-file

v1.0.1

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

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'