From 1faf1e8d6d9ed8fb66e4b7e6c5a8d2708353b10c Mon Sep 17 00:00:00 2001 From: brachy84 Date: Fri, 29 Dec 2023 12:04:49 +0100 Subject: [PATCH] fix modrinth release 2 --- .github/workflows/build_and_publish.yaml | 1 + build.gradle | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_publish.yaml b/.github/workflows/build_and_publish.yaml index 88d4d7a54..edb023713 100644 --- a/.github/workflows/build_and_publish.yaml +++ b/.github/workflows/build_and_publish.yaml @@ -57,6 +57,7 @@ jobs: id: read_version run: | mod_version=$(grep "modVersion" gradle.properties | cut -d'=' -f2 | tr -d '[:space:]') + echo "Current mod version: ${{mod_version}}" if [ "$mod_version" == "${{inputs.version}}" ]; then echo "UPDATED=true" >> $GITHUB_ENV else diff --git a/build.gradle b/build.gradle index 13edba87c..e89ffaf80 100644 --- a/build.gradle +++ b/build.gradle @@ -954,7 +954,7 @@ if (modrinthApiKey.isPresent() || deploymentDebug.toBoolean()) { } String[] parts = dep.split(':') String[] qual = parts[0].split('-') - addModrinthDep(qual[0], qual.length == 0 ? 'project' : qual[1], parts[1]) + addModrinthDep(qual[0], qual.length > 1 ? qual[1] : 'project', parts[1]) } } tasks.modrinth.dependsOn(build)