Skip to content

Commit

Permalink
set changelog only if not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
janthoXO committed Jul 21, 2024
1 parent 38eca55 commit ec12a07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
echo "${HTML}"
echo EOF
} >> $GITHUB_OUTPUT
echo "print html" >> $GITHUB_STEP_SUMMARY
echo "${HTML}" >> $GITHUB_STEP_SUMMARY
# Publish the plugin to JetBrains Marketplace
- name: Publish Plugin
Expand Down
9 changes: 6 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ tasks {
version.set(
environment("PLUGIN_VERSION").getOrElse("0.0.0")
)
changeNotes.set(
environment("CHANGELOG").getOrElse("No changelog provided")
)
val cn = environment("CHANGELOG").getOrElse("")
println("Changelog: $cn")
if (cn.isNotBlank()) {
changeNotes.set(cn)
}

}

publishPlugin {
Expand Down

0 comments on commit ec12a07

Please sign in to comment.