Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
bubriks committed Apr 16, 2021
1 parent 8468d79 commit 844dff1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ jobs:
- uses: actions/checkout@v2

- name: Check content
uses: bubriks/[email protected].2
uses: bubriks/[email protected].3
with:
expression: ^contributions/(.+)/(.+)/
strings: contributions/1/2/ contributions/1/2/
strings: contributions/1/2/test contributions/1/2/
```
#### Result from example
```
('1', '2')
groups::1 2
result::contributions/1/2/
```

### Inputs
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main():
else:
sys.exit("String doesnt match the pattern" +
"\nString: " + i)
print(f"::set-output name=groups::{match.groups()}")
print(f"::set-output name=groups::{' '.join(match.groups())}")
print(f"::set-output name=result::{match.group(0)}")


Expand Down

0 comments on commit 844dff1

Please sign in to comment.