Skip to content

Commit

Permalink
build: remove git branch info
Browse files Browse the repository at this point in the history
... as it's not very useful and leads to CI failure.
  • Loading branch information
WhiredPlanck committed Dec 5, 2023
1 parent 12e0dcb commit 6958b9a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ val gitUserOrCIName = envOrDefault("CI_NAME") {
}
val gitVersionName = exec("git describe --tags --long --always")
val gitHashShort = exec("git rev-parse --short HEAD")
val gitWorkingOrCIBranch = envOrDefault("CI_BRANCH") {
exec("git symbolic-ref --short HEAD")
}
val gitRemoteUrl = exec("git remote get-url origin")
.replaceFirst("^git@github\\.com:", "https://github.com/")
.replaceFirst("\\.git\$", "")
Expand All @@ -55,7 +52,6 @@ fun buildInfo(): String {
writer.append("Build Time: $time UTC\\n")
writer.append("Build Version Name: ${gitVersionName}\\n")
writer.append("Git Hash: ${gitHashShort}\\n")
writer.append("Git Branch: ${gitWorkingOrCIBranch}\\n")
writer.append("Git Repo: $gitRemoteUrl")
val info = writer.toString()
println(info)
Expand Down

0 comments on commit 6958b9a

Please sign in to comment.