Allow setting a tag prefix manually #279
Merged
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.
This PR enables users to manually specify a tag prefix, overriding the default tag prefix determination algorithm (the DTPDA, as it will henceforth be referred to as).
Before:
subdir="": tag prefix isv, e.g.,v0.1.0subdir="foo": tag prefix isfoo-v, e.g.,foo-v0.1.0With this PR, there are additional options available through the
tag_prefixinput:tag_prefix=""(default): as beforetag_prefix="bar": tag prefix isbar-v, e.g.,bar-v0.1.0(whatever the content ofsubdir)tag_prefix="NO_PREFIX": tag prefix isv, e.g.,v0.1.0(whatever the content ofsubdir)The main motivation is to allow users who have their Julia package in a subdirectory but want to tag their versions just as
v0.1.0and not assubdir-v0.1.0to use TagBot (which is an awesome action, thanks a lot to all maintainers!). This should be a non-breaking change, since the DTPDA remains unchanged if the new action inputtag_prefixis not set.Resolves #278.
cc @bgeihe