Skip to content

Commit

Permalink
ci: change method getting commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
xfqwdsj committed Jan 20, 2024
1 parent bd04790 commit 0587dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ tasks.register("updateCommitSha") {
doLast {
val stream = ByteArrayOutputStream()
exec {
commandLine("git", "rev-parse", "--short")
commandLine("git", "rev-parse", "--short", "HEAD")
standardOutput = stream
}
commitSha = stream.toString().trim()
Expand Down

0 comments on commit 0587dc3

Please sign in to comment.