dreitier/Conditional regex search and replace

Executes conditional search and replace operations on a set of files. Strings are replaced by matching regular expressions.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
mappingsDSL to define search-and-replace operationsyes
directoryDirectory, in which to operate. By default, the base directory is usedno
dumpIf `1`, it dumps the provided configurationno
if_well_known_vars_missing_failIf 1, it fails with exit code `2` if none of docker_image_tag, git_branch or git_tag is provided no
if_no_match_failIf the action has not modified any file and `if_no_match_fail` is `1`, it will fail with exit code `3`no
updated_file_suffixIf set, any changes will be written to another file the path of the original file and that suffixno
register_custom_regexesA comma-separated list of custom regular expressions to registerno
register_custom_variablesA comma-separated list of custom variables to registerno
commitIf there has been any modified files (see below, `outputs.total_modified_files`), it will commit the changes to the Git repositoryno
commit_templateTemplate to use for the commit message. You can use the [Blade template engine](https://laravel.com/docs/9.x/blade) to dynamically specify the message.no
committer_nameName of committer if `commit` is presentno
committer_email E-mail of committer if `commit` is present no
docker_image_tagDocker image tag created by upstream repositoryno
docker_image_tag_regexRegular expression to modify occurences of Docker image tags in globbed filesno
git_tagGit tag created by upstream repositoryno
git_tag_regexRegular expression to modify occurences of Git tags in globbed filesno
git_branchGit branch modified in upstream repositoryno
git_branch_regexRegular expression to modify occurences of Git branch in globbed filesno
namedescription
total_modified_filesNumber of modified (target) files