From 6fe45d61b1185a023017a079ad6295dc0efcfcbc Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Tue, 7 Jul 2020 06:26:29 +0200 Subject: [PATCH] GitHub Actions - Release - separate changelog related job from the release --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 23 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8dc221..27d36f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,28 @@ jobs: PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} run: ./gradlew publishPlugin + # Patch changelog, commit and push to the current repository + changelog: + name: Update Changelog + runs-on: ubuntu-latest + steps: + + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v2 + with: + ref: ${{ github.event.release.tag_name }} + + # Setup Java 1.8 environment for the next steps + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + # Publish the plugin to the Marketplace + - name: Patch Changelog + run: ./gradlew patchChangelog + # Commit patched Changelog - name: Commit files run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d63ba7..5d9efcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Update `org.jetbrains.changelog` dependency to `v0.3.3` - Update Gradle Wrapper to `v6.5.1` - Run GitHub Actions Release workflow on `prereleased` event +- GitHub Actions - Release - separate changelog related job from the release ### Fixed - Remove vendor website from `plugin.xml`