onlyutkarsh/Patch files
A simple action to patch JSON and YAML files using JSON Patch operations
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| files | Files to scan. Supports glob patterns (e.g., testfiles/**/*.json, config/*.yaml, **/*.yml) | yes | — |
| patch-syntax | Quick patch syntax to patch files. Uses JSON Patch operations. Works with both JSON and YAML files. See documentation for syntax details and examples. | yes | — |
| output-patched-file | Output patched file contents to the logs for verification | no | true |
| fail-if-no-files-patched | Fail the action if no files are patched by the specified pattern | no | false |
| fail-if-error | Fail the action on errors. Set to false to only show warnings instead of failing the workflow. | no | false |
Outputs
no outputs