This action is designed to merge two (2) json files together. Specify the input file with new json data and library file where the data will be merged into. Optionally you can specify the root path for the json object.
Required The name of the file with data to be merged into another file. This will overwrite data if the same key exists
Required The name of the master file to be combined with the data in 'input-file'
Optional The path to the object in the input-file to grab json data (recursively). Blank will merge fromt he root
Optional The path to the object in the input-file to grab json data (recursively). Blank will merge fromt he root
For debugging purposes
call-merge-json:
runs-on: ubuntu-latest
steps:
- uses: fiddlermikey/[email protected]
with:
new-json-path: 'person.firstname'
input-file: json1.json
library-file: json2.json