Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit ec12a07

Browse files
committed
set changelog only if not empty
1 parent 38eca55 commit ec12a07

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
echo "${HTML}"
5050
echo EOF
5151
} >> $GITHUB_OUTPUT
52+
echo "print html" >> $GITHUB_STEP_SUMMARY
53+
echo "${HTML}" >> $GITHUB_STEP_SUMMARY
5254
5355
# Publish the plugin to JetBrains Marketplace
5456
- name: Publish Plugin

build.gradle.kts

+6-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ tasks {
6060
version.set(
6161
environment("PLUGIN_VERSION").getOrElse("0.0.0")
6262
)
63-
changeNotes.set(
64-
environment("CHANGELOG").getOrElse("No changelog provided")
65-
)
63+
val cn = environment("CHANGELOG").getOrElse("")
64+
println("Changelog: $cn")
65+
if (cn.isNotBlank()) {
66+
changeNotes.set(cn)
67+
}
68+
6669
}
6770

6871
publishPlugin {

0 commit comments

Comments
 (0)