mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-29 02:21:41 +00:00
Only let in tags starting with "v" (#328)
This commit is contained in:
@@ -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]*")
|
||||
|
||||
Reference in New Issue
Block a user