From 2db167a82fca911bf14c0612fd95f660b19c53b1 Mon Sep 17 00:00:00 2001 From: Chrys Chrysanthemum Date: Tue, 7 Jul 2026 23:57:46 +1000 Subject: [PATCH] fix: Don't include forgejo sha if the release type is `releases`. --- .../main/kotlin/lgbt/greenhouse/cowponents/gradle/Properties.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_logic/src/main/kotlin/lgbt/greenhouse/cowponents/gradle/Properties.kt b/build_logic/src/main/kotlin/lgbt/greenhouse/cowponents/gradle/Properties.kt index 178d55b..7b36623 100644 --- a/build_logic/src/main/kotlin/lgbt/greenhouse/cowponents/gradle/Properties.kt +++ b/build_logic/src/main/kotlin/lgbt/greenhouse/cowponents/gradle/Properties.kt @@ -96,7 +96,7 @@ fun mapModVersion(modVersion: String): String { } fun mapMinecraftVersion(minecraftVersion: String): String { - if (System.getenv("FORGEJO_SHA") != null) { + if (System.getenv("RELEASE_TYPE") != "releases" && System.getenv("FORGEJO_SHA") != null) { val sha = "${System.getenv("FORGEJO_SHA")}" return "${minecraftVersion}-${sha}" } -- 2.51.2