axion-release-plugin
axion-release-plugin copied to clipboard
How to validate Git tags
If I wanted to impose a tag naming convention, or in other words, disallow some tags, how could I do that? I need a hook that gets called no matter the task.
What do you mean by "disallow some tags"? You configure the tag prefix in build.gradle and only this prefix is used. Can you give an example of expected behaviour?
What I meant is to fail the build if the Git repo has tags we don't wanna see. Like a tag ending in SNAPSHOT. I'm asking what'd be a good place to check the Git tags and fail the build if necessary.