Skip to content

Commit

Permalink
fix: wrong tag name in release artifactory (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Apr 8, 2024
1 parent 3dd930c commit 5684366
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build-logic/convention/src/main/kotlin/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ val Project.buildGitRepo
val Project.buildVersionName
get() =
envOrProp("BUILD_VERSION_NAME", "buildVersionName") {
runCmd("git describe --tags --long --always")
// 构建正式版时过滤掉 nightly 标签
val cmd =
if (builder.contains("nightly", ignoreCase = true)) {
"git describe --tags --long --always --match 'nightly'"
} else {
"git describe --tags --long --always --match 'v*'"
}
runCmd(cmd)
}

val Project.buildCommitHash
Expand Down

0 comments on commit 5684366

Please sign in to comment.