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

Nearest tag with optional tagPattern #90

Open
LTAbhirup opened this issue Apr 27, 2022 · 0 comments
Open

Nearest tag with optional tagPattern #90

LTAbhirup opened this issue Apr 27, 2022 · 0 comments

Comments

@LTAbhirup
Copy link

LTAbhirup commented Apr 27, 2022

I have two tags: the most recent is v5.3.1-qa1 and second most is v5.3.1.
I am using this config
androidGitVersion {
format "%tag%"
tagPattern (/^v([0-9]+).([0-9]+).([0-9]+)((-qa[0-9]+)*)$/)
}

Here I have made (-qa[0-9]+) as optional.
When running for react-native (in android/app/build.gradle) to generate version name, it is picking up 5.3.1 .Ideally it should be 5.3.1-qa1 since that is the one matching and most recent.

Please help to resolve this or if I am missing something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant