GH-CI: Auto-generate changelogs
Change-Id: I96fc87272e7c8a620e435a6f3cd038b270259f09
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8c30a14..91da6c6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -27,9 +27,43 @@
else
echo "prerelease=false" >> $GITHUB_OUTPUT
fi
+ - name: "Build Changelog"
+ id: build_changelog
+ uses: mikepenz/release-changelog-builder-action@v5
+ with:
+ configurationJson: |
+ {
+ "template": "#{{CHANGELOG}}",
+ "categories": [
+ {
+ "title": "## 🚀 Features",
+ "labels": ["feature", "enhancement"]
+ },
+ {
+ "title": "## 🐛 Fixes",
+ "labels": ["fix", "bug"]
+ },
+ {
+ "title": "## 📦 Other",
+ "labels": []
+ }
+ ],
+ "ignore_labels": [
+ "skip-changelog"
+ ],
+ "fetch_via_commits": true,
+ "fetch_reviewers": false,
+ "fetch_release_information": true,
+ "fetch_reviews": false,
+ "commit_mode": true
+ }
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
- name: Create Release
uses: softprops/action-gh-release@v2
with:
+ body: ${{ steps.build_changelog.outputs.changelog }}
tag_name: ${{ steps.get_version.outputs.tag_name }}
name: Release ${{ steps.get_version.outputs.tag_name }}
prerelease: ${{ steps.get_version.outputs.prerelease }}