Skip to content

Commit

Permalink
Create regex-match.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MeilCli authored May 2, 2022
1 parent e9dbd07 commit e3b8ae0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/regex-match.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

name: 'Example regex match'

on:
workflow_run:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: MeilCli/regex-match@master
id: regex
with:
regex_pattern: 'test: ([a-z]{1,10})([0-9])'
search_string: 'test: abc9'
- run: echo 'group1: $group1'
with:
group1: ${{ fromJSON(steps.regex.outputs.matched_json)[1] }}

0 comments on commit e3b8ae0

Please sign in to comment.