Skip to content

Commit

Permalink
fix: inaccurate command to get build version name
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Apr 9, 2024
1 parent b12f9e4 commit b402d42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-logic/convention/src/main/kotlin/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ val Project.buildVersionName
// 构建正式版时过滤掉 nightly 标签
val cmd =
if (builder.contains("nightly", ignoreCase = true)) {
"git describe --tags --long --always --match 'nightly'"
"git describe --tags --long --always --match nightly"
} else {
"git describe --tags --long --always --match 'v*'"
"git describe --tags --long --always --match v*"
}
runCmd(cmd)
}
Expand Down

0 comments on commit b402d42

Please sign in to comment.