Skip to content
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

Add version regex pattern for Maven dependency action #909

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Nov 17, 2022

Summary

This PR adds an INPUT_VERSION_REGEX input which can be used to filter the selected version.

It defaults to selecting any three-digit version number. You can set it to ^3\.[\d]+\.[\d]+$ to select only 3.x or ^4\.[\d]+\.[\d]+$ to only select 4.x. The only requirement is that the version regex match the given version string. The first match is the version selected.

Use Cases

Be able to select multiple versions of a Maven dependency, like for supporting multiple major versions.

This commit adds a `INPUT_VERSION_REGEX` input which can be used to filter the selected version.

It defaults to selecting any three-digit version number. You can set it to `^3\.[\d]+\.[\d]+$` to select only 3.x or `^4\.[\d]+\.[\d]+$` to only select 4.x. The only requirement is that the version regex match the given version string. The first match is the version selected.

Signed-off-by: Daniel Mikusa <dan@mikusa.com>
@dmikusa dmikusa added type:enhancement A general enhancement semver:minor A change requiring a minor version bump labels Nov 17, 2022
@dmikusa dmikusa requested a review from a team November 17, 2022 03:23
@dmikusa dmikusa merged commit 10a5ba6 into main Nov 18, 2022
@dmikusa dmikusa deleted the maven-version-regex branch November 18, 2022 13:12
This was referenced Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants