mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
GitHub Actions: Fixed changelog handling in release flow
This commit is contained in:
parent
7251596f16
commit
aab5b3bf65
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -38,16 +38,19 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user