[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 { fun Project.branchName(): String {
val byteOut = ByteArrayOutputStream() val byteOut = ByteArrayOutputStream()
exec { exec {
commandLine = listOf("git", "branch") commandLine = listOf("git", "symbolic-ref", "--short", "HEAD")
standardOutput = byteOut standardOutput = byteOut
} }
return byteOut.toString(Charsets.UTF_8.name()).trim() return byteOut.toString(Charsets.UTF_8.name()).trim()