From 6958b9af85440cfffd679548c729887cee4a07b1 Mon Sep 17 00:00:00 2001 From: WhiredPlanck Date: Tue, 5 Dec 2023 21:23:28 +0800 Subject: [PATCH] build: remove git branch info ... as it's not very useful and leads to CI failure. --- app/build.gradle.kts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 178c571c56..d81b521109 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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\$", "") @@ -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)