Skip to content

Commit

Permalink
Merge branch 'fixchangelog' into master_fork
Browse files Browse the repository at this point in the history
  • Loading branch information
JojOatXGME committed Jun 26, 2023
2 parents 46f247c + fc7e913 commit ff7026b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gradle/bumpVersion.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ task("bumpVersion") {
}
}

tasks.named("patchChangelog") {
// GitHub seems to use CRLF as line feeds.
// We have to replace them to avoid files with mixed line endings.
doFirst {
val releaseNote = property("releaseNote")
if (releaseNote is String) {
setProperty("releaseNote", releaseNote.replace("\r\n", "\n"))
}
}
}

/**
* Replaces the [prevVersion] with [nextVersion] for the `pluginVersion` property in `gradle.properties`.
*/
Expand Down

0 comments on commit ff7026b

Please sign in to comment.