From 23834c87f4a2fe51903c6142e881c7fe38e390c6 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 23 Nov 2021 20:22:54 -0500 Subject: [PATCH] Only let in tags starting with "v" (#328) --- versioningHelper.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/versioningHelper.gradle b/versioningHelper.gradle index 7fd635c9e..fa432ead8 100644 --- a/versioningHelper.gradle +++ b/versioningHelper.gradle @@ -8,13 +8,14 @@ gradle.allprojects { String tagIsh try { exec { - commandLine 'git', 'describe', '--tags', '--exclude="[dD]ev*"' + commandLine 'git', 'describe', '--tags', "--match=v*" standardOutput = stdout } tagIsh = stdout.toString().trim().toLowerCase() } catch (Exception e) { tagIsh = "dev-Unknown" } + // Dev tags: v2021.1.6-3-gf922466d // We're specifically looking to capture the middle -3- boolean isDev = tagIsh.matches(".*-[0-9]*-g[0-9a-f]*")