action-get-latest-tag icon indicating copy to clipboard operation
action-get-latest-tag copied to clipboard

Pre-release handling

Open roborourke opened this issue 2 years ago • 3 comments

What you want to add

It's not clear how this behaves with pre-releases, so it'd be great to see a documentation update, but the best outcome would be an input for whether or not to include pre-release tags.

Why this is needed

The latest tag someone wants may or may not be a pre-release version, e.g. 0.5.0 vs 1.0.0-beta.1 - which would be returned?

roborourke avatar Jun 28 '22 11:06 roborourke

I just ran into this problem today (what a coincidence), I am trying to use this action for pre-release tags but it does not seem like the grep expression matches pre-release versions.

zischknall avatar Jun 28 '22 12:06 zischknall

I think it does match but I want to the opposite behaviour for my own purposes. Not tested it yet but looks easy to change

roborourke avatar Jun 28 '22 17:06 roborourke

@roborourke @zischknall problem is this is running using -E and this doesn't support lookaheads and lookaheads and lookbehinds. This should be replaced with -P

falmanna avatar Jan 17 '23 15:01 falmanna