deefdragon / json-edit-action

Github Action to make a change to a JSON file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

json-edit-action

This is a VERY simple action, whose entire point is to make simple changes to json files.

The action is based on this template, and the json editing is based on https://www.npmjs.com/package/edit-json-file. Any formatting for the environment variables is in the npm package.

example usage

      - name: manifest Version
        uses: deef0000dragon1/json-edit-action/@v1
        env:
          KEY: version
          VALUE: v0.1.1
          FILE: manifest.json

Usage for more than a few edits is not recomended. It may be more efficent to code a custom json file creator/editor script for your use-case.

About

Github Action to make a change to a JSON file


Languages

Language:JavaScript 67.5%Language:Dockerfile 28.3%Language:Shell 4.2%