waeljammal / regex-property-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regex Replace

Implements JavaScript replace() method.

Example

- name: Find & Replace
  id: hello
  uses: ashley-taylor/regex-property-action@v1.3
  with:
    value: "Hello, world!"
    regex: "world"
    flags: "" # Optional, defaults to "g"
    replacement: "universe"
- name: Print Result
  run: echo "${{ steps.hello.outputs.value }}"

About


Languages

Language:JavaScript 100.0%