8000 Update matching version by peterdesmet · Pull Request #71 · aloftdata/vptstools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update matching version #71

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

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Update matching version #71

merged 2 commits into from
Jan 22, 2024

Conversation

peterdesmet
Copy link
Member

@stijnvanhoey I think there were two issues with the previous regex.

  1. It doesn't match v0.4.0-alpha.1 or even v0.3.0 for that matter.
  2. The second expression is invalid regex (according to regex101).

The current version is more flexible. I did drop the matching for tags that do not start with v

Copy link
Contributor
@stijnvanhoey stijnvanhoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afaik, github actions does not support fully regex, but provides some wildcards one can use, like * for any character, see also https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#patterns-to-match-branches-and-tags

@peterdesmet
Copy link
Member Author
peterdesmet commented Jan 22, 2024

In that case 'v[0-9]*', '[0-9]*' rather than 'v[0-9]*', '[0-9]+.[0-9]+*' should be enough?

@stijnvanhoey
Copy link
Contributor

In that case 'v[0-9]*', '[0-9]*' rather than 'v[0-9]*', '[0-9]+.[0-9]+*' should be enough?

Indeed. Or even only keep the ``'v[0-9]*'` if that is how you define versions

@peterdesmet peterdesmet merged commit 811e76f into main Jan 22, 2024
@peterdesmet peterdesmet deleted the version-tag branch January 22, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0