[ci skip] Fix branch check

This commit is contained in:
Nassim Jahnke 2023-09-26 00:17:33 +10:00
parent 840770a350
commit 87db6fc75a
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ fun Project.latestCommitMessage(): String {
fun Project.branchName(): String {
val byteOut = ByteArrayOutputStream()
exec {
commandLine = listOf("git", "branch")
commandLine = listOf("git", "symbolic-ref", "--short", "HEAD")
standardOutput = byteOut
}
return byteOut.toString(Charsets.UTF_8.name()).trim()