-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
31 lines (28 loc) · 1.02 KB
/
Copy pathaction.yml
File metadata and controls
31 lines (28 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: 'Patch files'
description: 'A simple action to patch JSON and YAML files using JSON Patch operations'
author: 'Utkarsh Shigihalli'
inputs:
files:
description: 'Files to scan. Supports glob patterns (e.g., testfiles/**/*.json, config/*.yaml, **/*.yml)'
required: true
patch-syntax:
description: 'Quick patch syntax to patch files. Uses JSON Patch operations. Works with both JSON and YAML files. See documentation for syntax details and examples.'
required: true
output-patched-file:
description: 'Output patched file contents to the logs for verification'
required: false
default: 'true'
fail-if-no-files-patched:
description: 'Fail the action if no files are patched by the specified pattern'
required: false
default: 'false'
fail-if-error:
description: 'Fail the action on errors. Set to false to only show warnings instead of failing the workflow.'
required: false
default: 'false'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'file-text'
color: 'blue'