string-tokeniser
ActionsTags
(1)Simple GitHub Action written in go to replace strings in files
files- Glob expression of files to search through. E.G.**/*.yamlprefix- Prefix to use when matching tokens, defaults to#{suffix- Suffix to use when matching tokens, defaults to}#fail-if-no-provided-replacement- Will fail if a token is found but there was no variable provided to replace it. Defaults totrue
If you wanted to replace #{version}# in all of your yaml files
- uses: scott-david-walker/tokeniser@v1.0.5
with:
files: '**/*.yaml'
env:
version: "1.0.5" If you want to use a different format, you can use a different prefix and suffix.
Same example as before, but this time with {{ }}
- uses: scott-david-walker/tokeniser@v1.0.5
with:
prefix: '{{'
suffix: '}}'
files: '**/*.yaml'
env:
version: "1.0.5"string-tokeniser is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.