Skip to content

Commit

Permalink
Update regex-match.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MeilCli authored May 2, 2022
1 parent 68c6836 commit 651713f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/regex-match.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ name: 'Example regex match'
on:
workflow_dispatch:
jobs:
check:
example:
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'
- run: echo "group1=$group1"
env:
group1: ${{ fromJSON(steps.regex.outputs.matched_json)[1] }}

0 comments on commit 651713f

Please sign in to comment.