Skip to content

Commit

Permalink
Fix changelogs broken for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Aug 18, 2024
1 parent c84ff31 commit 4617d1a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions buildSrc/src/main/groovy/multiloader-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,10 @@ def getModrinthKey() {
}
def getChangelog() {
if (System.getenv().RELEASE) {
def path = "../resources/changelog/${project.minecraft_version}-${project.version}.txt";
if (new File(path).exists()) {
return file(path).readText();
}
return file("../resources/changelog/${project.minecraft_version}-${project.mod_version}.txt").getText();
} else {
return "Changes since last release: ${project.github_url}/compare/${project.minecraft_version}-${project.mod_version}...${System.getenv().GITHUB_SHA}"
}
return "";
}
ext {
secrets = getSecrets();
Expand Down

0 comments on commit 4617d1a

Please sign in to comment.