Skip to content

Commit

Permalink
fix modrinth release 2
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Dec 29, 2023
1 parent aa307d7 commit 1faf1e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1faf1e8

Please sign in to comment.