fix(ci): getVersion task
This commit is contained in:
@@ -16,6 +16,10 @@ rootProject.ext.set("buildHash", properties["debug_build_hash"] ?: java.security
|
|||||||
tasks.register("getVersion") {
|
tasks.register("getVersion") {
|
||||||
doLast {
|
doLast {
|
||||||
val versionFile = File("app/build/version.txt")
|
val versionFile = File("app/build/version.txt")
|
||||||
|
versionFile.parentFile.mkdirs()
|
||||||
|
if (!versionFile.exists()) {
|
||||||
|
versionFile.createNewFile()
|
||||||
|
}
|
||||||
versionFile.writeText(versionName)
|
versionFile.writeText(versionName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user