mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-09-24 12:56:35 +00:00
GitHub Actions: simplify changelog handling
This commit is contained in:
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
@@ -44,27 +44,17 @@ jobs:
|
||||
with:
|
||||
cache-read-only: true
|
||||
|
||||
# Set environment variables
|
||||
- name: Export Properties
|
||||
id: properties
|
||||
shell: bash
|
||||
run: |
|
||||
CHANGELOG="$(cat << 'EOM' | sed -e 's/^[[:space:]]*$//g' -e '/./,$!d'
|
||||
${{ github.event.release.body }}
|
||||
EOM
|
||||
)"
|
||||
|
||||
echo "changelog<<EOF" >> $GITHUB_OUTPUT
|
||||
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
|
||||
# Update the Unreleased section with the current release note
|
||||
- name: Patch Changelog
|
||||
if: ${{ steps.properties.outputs.changelog != '' }}
|
||||
if: ${{ github.event.release.body != '' }}
|
||||
env:
|
||||
CHANGELOG: ${{ steps.properties.outputs.changelog }}
|
||||
CHANGELOG: ${{ github.event.release.body }}
|
||||
run: |
|
||||
./gradlew patchChangelog --release-note="$CHANGELOG"
|
||||
RELEASE_NOTE="./build/tmp/release_note.txt"
|
||||
echo "$CHANGELOG" > $RELEASE_NOTE
|
||||
|
||||
${{ github.event.release.body }}
|
||||
./gradlew patchChangelog --release-note-file=$RELEASE_NOTE
|
||||
|
||||
# Publish the plugin to JetBrains Marketplace
|
||||
- name: Publish Plugin
|
||||
|
||||
Reference in New Issue
Block a user