forked from jacobtomlinson/gha-find-replace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
33 lines (33 loc) · 1.03 KB
/
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
name: "Find and Replace Action Fork"
description: "Find and replace a string in your project files"
author: "Jacob Tomlinson (FS Fork)"
inputs:
include:
description: "A glob of files to include in our find and replace"
default: "**" # Include everything by default
required: false
exclude:
description: "A glob of files to exclude in our find and replace"
default: ".git/**" # Ignore the `.git` directory by default
required: false
find:
description: "The regular expression (or fixed string) we want to replace"
required: true
replace:
description: "The new string to replace with"
required: true
regex:
description: "Whether to match with.find as a regular expression instead of a fixed string"
required: false
outputs:
modifiedFiles:
description: "The number of files which have been modified"
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.find }}
- ${{ inputs.replace }}
- ${{ inputs.regex }}
- ${{ inputs.include }}
- ${{ inputs.exclude }}