Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 677 Bytes

File metadata and controls

32 lines (19 loc) · 677 Bytes

Repo Search & Replace Utility

Utility to search a repository and performing a search & replace on files matching the file_pattern input

Inputs

file_pattern

Required file search pattern ('plaintext' or '/regex/') Default .*, meaning searches all files.

search_string

Required string to search for

replace_string

Required replacment string

Outputs

change_log

log of replacements

Example usage

uses: actions/repo-search-replace@v2' description: 'search repo files matching the file_pattern input, and then perform a search & replace with: file_pattern: /.*\.tf/ search_string: find_me replace_string: replaced!