From 404a4b269f9c5360d06119abc4f93f7cdbfcaae5 Mon Sep 17 00:00:00 2001 From: Hernan Monserrat <16483541+hemonserrat@users.noreply.github.com> Date: Fri, 12 Sep 2025 23:33:21 -0700 Subject: [PATCH] fix: replace manual changelog with mikepenz/release-changelog-builder-action@v5 - Eliminates EOF delimiter errors in GitHub Actions workflow - Uses actively maintained action (v5.3.1 latest stable) - Adds automatic categorization and professional formatting - Resolves workflow failures in release process --- .github/workflows/release.yml | 51 ++++++++++++++++++++++++++++------- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9405a95..6843b9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -86,15 +86,48 @@ jobs: - name: Generate changelog id: changelog - run: | - # Simple changelog generation - you might want to use a more sophisticated tool - echo "## Changes" > CHANGELOG.md - git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 HEAD^)..HEAD >> CHANGELOG.md || echo "- Initial release" >> CHANGELOG.md - { - echo "changelog<> $GITHUB_OUTPUT + uses: mikepenz/release-changelog-builder-action@v5 + with: + configuration: | + { + "categories": [ + { + "title": "## 🚀 Features", + "labels": ["feature", "enhancement"] + }, + { + "title": "## 🐛 Bug Fixes", + "labels": ["bug", "fix"] + }, + { + "title": "## 🔧 Maintenance", + "labels": ["chore", "ci", "deps"] + }, + { + "title": "## 📚 Documentation", + "labels": ["docs", "documentation"] + } + ], + "template": "#{{CHANGELOG}}\n\n## Other Changes\n#{{UNCATEGORIZED}}", + "pr_template": "- #{{TITLE}} (#{{NUMBER}})", + "empty_template": "- No changes in this release", + "transformers": [ + { + "pattern": "^(feat|feature)(\\(.+\\))?!?:", + "target": "🚀 $1" + }, + { + "pattern": "^(fix|bug)(\\(.+\\))?!?:", + "target": "🐛 $1" + }, + { + "pattern": "^(chore|ci|deps)(\\(.+\\))?!?:", + "target": "🔧 $1" + } + ] + } + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create GitHub Release uses: softprops/action-gh-release@v2