feat: add prefix match tag input option #129
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a special case: we are moving our legacy app to totally new architecture.
The legacy app is tagged WITHOUT the
vprefix, based ONLY on theSemVernotation. For example, latest tag is:0.0.91The new app is tagged WITH the
vprefix. For example, latest tag is:v1.0.0I have upgrade my GitHub Action CI/CD to continue to support the both notation, relay on this, I can easily identify
oldandnewtags/packages. In the futur, it will be easy to remove all old stuff without to check if current tag isoldornewapp.Both stacks could have new version.
Context: currents tags on my git hub repo:
Actual behavior
If I push something related to my old stack, I'm attending that the new tag will be

0.0.92. With the version6.0, it was not the case, the latest tag used wasv1.0.0(related to the new stack), so, new tag will be1.0.1Attended & new behavior
I use the new option
prefix_match_tagI introduce to informe thegithub-tag-actionI want that all tags mustMATCHwithtag_prefixto be valide. Below, usage example:Now, when I push something related to old stack, all tags prefixed by

vare exclude, so, I have the attended behavior: new version is0.0.92