mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-05 03:21:40 +00:00
Update dev tag matcher (#300)
This commit is contained in:
@@ -141,6 +141,7 @@ publishing {
|
|||||||
username 'ghactions'
|
username 'ghactions'
|
||||||
password System.getenv("ARTIFACTORY_API_KEY")
|
password System.getenv("ARTIFACTORY_API_KEY")
|
||||||
}
|
}
|
||||||
|
println("Publishing to " + url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,8 +15,10 @@ gradle.allprojects {
|
|||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
tagIsh = "dev-Unknown"
|
tagIsh = "dev-Unknown"
|
||||||
}
|
}
|
||||||
// boolean isDev = tagIsh.matches(".*-[0-9]*-g[0-9a-f]*")
|
// Dev tags: v2021.1.6-3-gf922466d
|
||||||
// if(isDev) tagIsh = "dev-" + tagIsh
|
// 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)
|
println("Picked up version: " + tagIsh)
|
||||||
return tagIsh
|
return tagIsh
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user