GitHub Actions: Fixed changelog handling in release flow

pull/206/head
Jakub Chrzanowski 3 years ago
parent 7251596f16
commit aab5b3bf65
No known key found for this signature in database
GPG Key ID: C39095BFD769862E

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

Loading…
Cancel
Save