Update examples in README.md
This commit is contained in:
parent
76a6ae3126
commit
a839c172ab
|
|
@ -34,7 +34,7 @@ It can be useful for automating repetitive tasks such as updating version number
|
||||||
# Replace all the occurrences of 'hello' with 'world' in all the txt files,
|
# Replace all the occurrences of 'hello' with 'world' in all the txt files,
|
||||||
# excluding the node_modules folder
|
# excluding the node_modules folder
|
||||||
- name: Replace multiple files
|
- name: Replace multiple files
|
||||||
uses: richardrigutins/replace-in-files@v1
|
uses: richardrigutins/replace-in-files@v2
|
||||||
with:
|
with:
|
||||||
files: '**/*.txt'
|
files: '**/*.txt'
|
||||||
search-text: 'hello'
|
search-text: 'hello'
|
||||||
|
|
@ -44,7 +44,7 @@ It can be useful for automating repetitive tasks such as updating version number
|
||||||
|
|
||||||
# Replace all the occurrences of '{0}' with '42' in the README.md file
|
# Replace all the occurrences of '{0}' with '42' in the README.md file
|
||||||
- name: Replace single file
|
- name: Replace single file
|
||||||
uses: richardrigutins/replace-in-files@v1
|
uses: richardrigutins/replace-in-files@v2
|
||||||
with:
|
with:
|
||||||
files: 'README.md'
|
files: 'README.md'
|
||||||
search-text: '{0}'
|
search-text: '{0}'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue