Skip to content

Commit

Permalink
this is cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolij committed Apr 15, 2024
1 parent 60a32c4 commit 993904c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -615,14 +615,13 @@ afterEvaluate {
val releaseChangeLog = getChangelog()
val file = getFileForPublish().asFile

var content = "# [Zume Test Build ${Zume.version}](<https://github.com/Nolij/Zume/releases/tag/release/${Zume.version}>) has been released!\n"
var content = "# [Zume Test Build ${Zume.version}]" +
"(<https://github.com/Nolij/Zume/releases/tag/${releaseTagPrefix}${Zume.version}>) has been released!\n" +
"Changes since last build: <${compareLink}>"

content +=
if (buildChangeLog.trim().isEmpty())
"Changes since last build: <${compareLink}>"
else
"Changes since last build: <${compareLink}> ```md\n${buildChangeLog}\n```\n"
content += "Changes since last release: ```md\n${releaseChangeLog}\n```"
if (buildChangeLog.trim().isEmpty())
content += " ```md\n${buildChangeLog}\n```"
content += "\nChanges since last release: ```md\n${releaseChangeLog}\n```"

val webhook = DiscordAPI.Webhook(
content,
Expand Down

0 comments on commit 993904c

Please sign in to comment.