mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
GitHub Actions - patch changelog only if change notes are provided
This commit is contained in:
parent
ec6688c2b3
commit
7225827b67
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -28,11 +28,24 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
|
||||||
|
# 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 "::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 != '' }}
|
||||||
run: |
|
run: |
|
||||||
./gradlew patchChangelog --release-note "$(cat << 'EOM'
|
./gradlew patchChangelog --release-note "$(cat << 'EOM'
|
||||||
${{ github.event.release.body }}
|
${{ steps.properties.outputs.changelog }}
|
||||||
EOM
|
EOM
|
||||||
)"
|
)"
|
||||||
|
|
||||||
@ -50,6 +63,7 @@ jobs:
|
|||||||
|
|
||||||
# Create pull request
|
# Create pull request
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
|
if: ${{ steps.properties.outputs.changelog != '' }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
- Dependencies (GitHub Actions) - upgrade `jtalk/url-health-check-action` to `2`
|
- Dependencies (GitHub Actions) - upgrade `jtalk/url-health-check-action` to `2`
|
||||||
- GitHub Actions general performance refactoring
|
- GitHub Actions general performance refactoring
|
||||||
- GitHub Actions - prepare plugin archive content to be archived once
|
- GitHub Actions - prepare plugin archive content to be archived once
|
||||||
|
- GitHub Actions - patch changelog only if change notes are provided
|
||||||
- Update `pluginUntilBuild` to include `213.*` (2021.3.*)
|
- Update `pluginUntilBuild` to include `213.*` (2021.3.*)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
Loading…
Reference in New Issue
Block a user