input_file
- Path to file with the placeholders to replace. If directory, will replace all files in the directory.
output_file
- Path to output file. If
input_file
is directory, will be a directory too. - Optional, defaults to
input_file
- Path to output file. If
pattern
- Which placeholders to replace.
- Options:
single_dollar_brackets
->${VARIABLE}
double_dollar_brackets
->${{VARIABLE}}
double_underscore
->__VARIABLE__
- Optional, defaults to
single_dollar_brackets
fail_on_missing_env
- If true, will fail if a key required in the input file is missing in the environment.
- default:
false
The input_file
:
{
"foo": "${FOO_BAR_123}"
}
The workflow:
name: whatever
env:
FOO_BAR_123: 'literally whatever'
The result:
{
"foo": "literally whatever"
}
Licensed under MIT license.
Please also see licenses.txt