Skip to content

Commit 6fe45d6

Browse files
committed
GitHub Actions - Release - separate changelog related job from the release
1 parent 2fc4b4c commit 6fe45d6

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,28 @@ jobs:
3333
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
3434
run: ./gradlew publishPlugin
3535

36+
# Patch changelog, commit and push to the current repository
37+
changelog:
38+
name: Update Changelog
39+
runs-on: ubuntu-latest
40+
steps:
41+
42+
# Check out current repository
43+
- name: Fetch Sources
44+
uses: actions/checkout@v2
45+
with:
46+
ref: ${{ github.event.release.tag_name }}
47+
48+
# Setup Java 1.8 environment for the next steps
49+
- name: Setup Java
50+
uses: actions/setup-java@v1
51+
with:
52+
java-version: 1.8
53+
54+
# Publish the plugin to the Marketplace
55+
- name: Patch Changelog
56+
run: ./gradlew patchChangelog
57+
3658
# Commit patched Changelog
3759
- name: Commit files
3860
run: |

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Update `org.jetbrains.changelog` dependency to `v0.3.3`
1111
- Update Gradle Wrapper to `v6.5.1`
1212
- Run GitHub Actions Release workflow on `prereleased` event
13+
- GitHub Actions - Release - separate changelog related job from the release
1314

1415
### Fixed
1516
- Remove vendor website from `plugin.xml`

0 commit comments

Comments
 (0)