You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the issue is that group1 can be empty while match contains a value. I used this code to extract the version name from a git tag (v1.5.5+157):
- name: 'Extract version name from tag'
uses: actions-ecosystem/action-regex-match@v2
id: version-name
with:
text: ${{ env.VERSION_NAME }}
regex: '[0-9]+\.[0-9]+\.[0-9]+' # https://regexr.com/
When I printed out the results, group1 is blank and match contained the correct value (1.5.5):
Hello, I tried to use this to extract
1.0.0
fromrefs/heads/release/1.0.0
, but failed.This outputs
echo 'refs/heads/release/1.0.0'
echo ''
This regex was crafted with https://regex101.com in JavaScript mode
The text was updated successfully, but these errors were encountered: