Skip to content

string-tokeniser

Actions
Finds and replaces strings
v1.0.5
Latest
Star (0)

Tags

 (1)

Tokeniser

Simple GitHub Action written in go to replace strings in files

Inputs

  • files - Glob expression of files to search through. E.G. **/*.yaml
  • prefix - 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 to true

Example

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.

About

Finds and replaces strings
v1.0.5
Latest

Tags

 (1)

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.