mpmxyz/Merge JSON with template
Creates or updates a JSON file based on a template
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source-file | JSON Template that will be merged into the target file ($VAR/$(VAR) will be replaced without any substitution, $$ will become $) | yes | — |
| target-file | JSON file to be merged | yes | — |
| source-path | Path within the source file that will be copied from | no | "" |
| target-path | Path within the target file that will be pasted into (sibling paths remain unchanged) | no | "" |
| skipped-source-paths | Paths relative to the source path that will not be copied from (separated by newline and trimmed from surrounding whitespace, * to match all paths) | no | "" |
| skipped-target-paths | Paths relative to the target path that will be removed unless overridden by the source file (separated by newline and trimmed from surrounding whitespace, * to match all paths) | no | "" |
| appended-array-paths | Paths relative to the source and target that will merge by appending instead of overwriting (separated by newline and trimmed from surrounding whitespace, * to match all paths) | no | "" |
| substitution-file | A JSON file with values that will substitute $KEYS within the template, overrides the default replacement with environment variables | no | "" |
Outputs
no outputs