ci: fix nightly naming

This commit is contained in:
zaneschepke
2026-06-17 06:07:00 -04:00
parent b8c75a45e4
commit aaf7ebd326
+8 -2
View File
@@ -36,10 +36,16 @@ fun buildLanguagesArray(languages: List<String>): String {
fun Project.getGitCommitHash(): String {
return providers.provider {
System.getenv("GITHUB_SHA")
val ciSha = System.getenv("GITHUB_SHA")
?: System.getenv("CI_COMMIT_SHA")
?: System.getenv("GIT_COMMIT")
?: runGitCommand(listOf("rev-parse", "--short", "HEAD"))
if (ciSha != null) {
return@provider ciSha.take(7)
}
// Local only
runGitCommand(listOf("rev-parse", "--short", "HEAD"))
}.get()
}