Add test for replacing using environment variables
This commit is contained in:
parent
b7bc514a9a
commit
4d61d63126
|
|
@ -47,6 +47,16 @@ jobs:
|
|||
replacement-text: 'world'
|
||||
exclude: '**/*.check.txt'
|
||||
|
||||
- name: Replace in Files - replace using environment variable
|
||||
uses: ./
|
||||
with:
|
||||
search-text: '_ENV_'
|
||||
files: '**/*.txt'
|
||||
replacement-text: $REPLACEMENT
|
||||
exclude: '**/*.check.txt'
|
||||
env:
|
||||
REPLACEMENT: environment
|
||||
|
||||
- name: Replace in Files - pattern finds only one file
|
||||
uses: ./
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -2,3 +2,4 @@ Version: 1.0.2.
|
|||
Hello world!
|
||||
This should be twenty-three: 23.
|
||||
This line has been changed: false.
|
||||
This value comes from enviroment variables: enviroment
|
||||
|
|
|
|||
|
|
@ -2,3 +2,4 @@ Version: @VERSION@.
|
|||
Hello {0}!
|
||||
This should be twenty-three: 23.
|
||||
This line has been changed: false.
|
||||
This value comes from enviroment variables: _ENV_
|
||||
|
|
|
|||
Loading…
Reference in New Issue