Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tags doesn't match #256

Open
PPCM opened this issue Dec 17, 2021 · 2 comments
Open

tags doesn't match #256

PPCM opened this issue Dec 17, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@PPCM
Copy link

PPCM commented Dec 17, 2021

The behaviour with tags is strange.

For example:

With the following code

    steps:
      - name: checkout code
        uses: actions/checkout@v2

      - name: Version match
        uses: actions-ecosystem/action-regex-match@v2
        id: version-match
        with:
          text: ${GITHUB_REF#refs/tags/}
          regex: '^(.*)'

With the tag '1.2.3', it matches '1.2.3'

But with the following code

    steps:
      - name: checkout code
        uses: actions/checkout@v2

      - name: Version match
        uses: actions-ecosystem/action-regex-match@v2
        id: version-match
        with:
          text: ${GITHUB_REF#refs/tags/}
          regex: '^([0-9]*)'

Still with a same tag, it matches ''

And finally with the following code

    steps:
      - name: checkout code
        uses: actions/checkout@v2

      - name: Version match
        uses: actions-ecosystem/action-regex-match@v2
        id: version-match
        with:
          text: '1.2.3'
          regex: '^([0-9]*)'

It matches '1'

Any idea why?

@PPCM PPCM added the bug Something isn't working label Dec 17, 2021
@danielcweber
Copy link

There's no dots in ^([0-9]*) but 1.2.3 got dots.

@PPCM
Copy link
Author

PPCM commented Jan 24, 2022

that's it, I feel so ...
Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants