alexander-trishin/Replace tokens in text files
Replaces tokens in text files using variables defined in YAML or JSON format
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| target | A multiline list of files to replace tokens in. Each line supports glob pattern (uses '@actions/glob'). | yes | — |
| encoding | The encoding to read and write all files. Accepted values: - auto: detect encoding using chardet - ascii - utf-8 - utf-16le Supported values: auto, ascii, utf-8, utf-16le. | — | auto |
| follow-symbolic-links | Indicates whether to follow symbolic links while searching for target file(s). | — | true |
| token-prefix | The token prefix for using custom token pattern. | — | ${{ '${{' }} |
| token-suffix | The token suffix for using custom token pattern. | — | }} |
| variables | A YAML formatted multiline string containing variable values (keys are case-insensitive). May override values from `variables-json` and `variables-secret-json` if keys match. | — | "" |
| variables-json | A JSON formatted multiline string containing additional variable values (keys are case-insensitive). Values may be overwritten by `variables-secret-json` and `variables' if keys match. | — | "" |
| variables-secret-json | A JSON formatted multiline string containing additional variable values (keys are case-insensitive, all values are masked). Values may be overwritten by `variables' if keys match. | — | "" |
Outputs
no outputs