Skip to content

Commit

Permalink
Get version from git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
alakida committed May 15, 2020
1 parent 6e539a5 commit 24b5256
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ repositories {
println("GITHUB REF: ${System.getenv("GITHUB_REF")}")

group = "ru.yandex.cloud"
version = "1.0.3"
version = System.getenv("GITHUB_REF")?.let {
Regex("refs/tags/v?(.+)").find(it)?.groupValues?.get(1)
} ?: "0.0.1-SNAPSHOT"

val grpcVersion = "1.28.1"
val protobufVersion = "3.11.4"
Expand Down

0 comments on commit 24b5256

Please sign in to comment.