fix changelog handling in release flow

This commit is contained in:
Marcel Haßlinger 2021-12-07 12:04:49 +01:00
parent 3e9c6c84bb
commit d66cf3595e
2 changed files with 7 additions and 4 deletions

View File

@ -38,15 +38,17 @@ jobs:
EOM
)"
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "::set-output name=changelog::$CHANGELOG"
# Update Unreleased section with the current release note
- name: Patch Changelog
if: ${{ steps.properties.outputs.changelog != '' }}
env:
CHANGELOG: ${{ steps.properties.outputs.changelog }}
run: |
./gradlew patchChangelog --release-note "$(cat << 'EOM'
${{ steps.properties.outputs.changelog }}
EOM
)"
./gradlew patchChangelog --release-note="$CHANGELOG"
# Publish the plugin to the Marketplace
- name: Publish Plugin
env:

View File

@ -5,6 +5,7 @@
## [Unreleased]
### Fixed
- NullPointerException on key completion
- Changelog handling in release flow
### Changed
- Updated plugin dependencies