Update dev tag matcher (#300)

This commit is contained in:
Matt
2021-10-07 11:13:11 -04:00
committed by GitHub
parent f922466d41
commit 3241ef7b1b
2 changed files with 5 additions and 2 deletions

View File

@@ -141,6 +141,7 @@ publishing {
username 'ghactions'
password System.getenv("ARTIFACTORY_API_KEY")
}
println("Publishing to " + url)
}
}
}

View File

@@ -15,8 +15,10 @@ gradle.allprojects {
} catch(Exception e) {
tagIsh = "dev-Unknown"
}
// boolean isDev = tagIsh.matches(".*-[0-9]*-g[0-9a-f]*")
// if(isDev) tagIsh = "dev-" + tagIsh
// 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]*")
if(isDev && !tagIsh.startsWith("dev-")) tagIsh = "dev-" + tagIsh
println("Picked up version: " + tagIsh)
return tagIsh
}