From 1bf7962dc307eed68791d54b9af9f6ca3098ceba Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 11 Aug 2023 16:24:27 +1000 Subject: [PATCH] Call latestCommitHash only once --- universal/build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/universal/build.gradle.kts b/universal/build.gradle.kts index 480e2e05e..fe799bcda 100644 --- a/universal/build.gradle.kts +++ b/universal/build.gradle.kts @@ -50,7 +50,8 @@ val suffixedVersion = if (isRelease) baseVersion else baseVersion + "+" + System val changelogContent = if (isRelease) { "See [GitHub](https://github.com/ViaVersion/ViaVersion) for release notes." } else { - "[${rootProject.latestCommitHash()}](https://github.com/ViaVersion/ViaVersion/commit/${rootProject.latestCommitHash()}) ${rootProject.latestCommitMessage()}" + val commitHash = rootProject.latestCommitHash() + "[$commitHash](https://github.com/ViaVersion/ViaVersion/commit/$commitHash) ${rootProject.latestCommitMessage()}" } val isMainBranch = branch == "master" modrinth {