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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON List Insert

Insert an object into a JSON list in a file.

Inputs

file

Required The file containing the list.

index

Required By default -1.

item

Required JSON object to insert

Notes

  • The list must be the top level root.
  • The JSON file is loaded in memory.

Example

- uses: sanjacob/json-insert@v1
  with:
    file: shopping.json
    item: |
      {
        "name": "Eggs",
        "amount": 4
      }

License

This software is distributed under the 3-Clause BSD License.

About

GitHub action to insert object into JSON file

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages