mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Update dev tag matcher (#300)
This commit is contained in:
@@ -141,6 +141,7 @@ publishing {
|
||||
username 'ghactions'
|
||||
password System.getenv("ARTIFACTORY_API_KEY")
|
||||
}
|
||||
println("Publishing to " + url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user