Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashley-taylor/regex-property-action


https://github.com/ashley-taylor/regex-property-action

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# Regex Replace

Implements JavaScript [replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) method.

## Example

```yml
- 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 }}"
```