GitHub Action
Regex Replace
v1.4
Latest version
Implements JavaScript replace() method.
- name: Find & Replace
id: hello
uses: ashley-taylor/[email protected]
with:
value: "Hello, world!"
regex: "world"
flags: "" # Optional, defaults to "g"
replacement: "universe"
- name: Print Result
run: echo "${{ steps.hello.outputs.value }}"