ci: added git commit short reference

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2024-05-08 01:07:12 +02:00
parent 714976cd74
commit 0d775f1252
Signed by: moonleay
GPG key ID: 82667543CCD715FB
2 changed files with 18 additions and 3 deletions

View file

@ -30,9 +30,9 @@ plugins {
id("com.modrinth.minotaur") version "2.+"
}
val mavenVersion = System.getenv("GITHUB_SHA") ?: System.getenv("GITHUB_SHA")
?.let { "$it-${project.ext["minecraft.version"] as String}" }
?: "0.0.0-${project.ext["minecraft.version"] as String}"
val ver = System.getenv("GIT_SHA_SHORT") ?: "0.0.0"
val mavenVersion = "$ver-${project.ext["minecraft.version"] as String}"
val modId: String by project
val modName: String by project