forked from mingjun97/file-regex-replace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (39 loc) · 944 Bytes
/
action.yml
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
32
33
34
35
36
37
38
39
name: 'File Regex Replace'
description: 'Allows you to perform a regex replace in your repository files'
branding:
icon: 'box'
color: 'green'
inputs:
regex:
description: 'regex to apply(regex)'
required: true
flags:
description: 'flags of the regex'
default: 'g'
required: false
replacement:
description: 'replacement string'
default: "$1"
required: true
include:
description: 'Files to be replaced(regex)'
default: '.*'
required: false
exclude:
description: 'Files not to be replaced(regex)'
default: '.^'
required: false
encoding:
description: 'String file encoding'
default: 'utf8'
required: false
path:
description: 'Path to the folder to be replaced'
default: '.'
required: false
outputs:
value:
description: 'regex replaced in your repository files'
runs:
using: 'node12'
main: 'index.js'