Skip to content

Commit 9b5b571

Browse files
committed
Fix: changelog generate task was not creating build dir
1 parent 470dbab commit 9b5b571

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/create-draft-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
wrapper-directory: kt/
2828
build-root-directory: kt/
29-
arguments: generateChangelog
29+
arguments: generateChangelog --stacktrace
3030
- name: Create draft release
3131
id: create_release
3232
uses: actions/create-release@v1

kt/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ tasks {
5151
"- [${commit.abbreviatedId}]($link) ${commit.shortMessage}"
5252
}
5353

54-
project.buildDir.resolve("changelog.md").writeText(changelogString)
54+
project.buildDir.resolve("changelog.md").also {
55+
if (!it.parentFile.exists()) {
56+
it.parentFile.mkdirs()
57+
}
58+
}.writeText(changelogString)
5559
}
5660
}
5761
val buildEngineDebug by creating(Exec::class) {

0 commit comments

Comments
 (0)