Skip to content

Commit f3e9d4d

Browse files
authored
fix: replace manual changelog with mikepenz/release-changelog-builder-action@v5 (#21)
- 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 Co-authored-by: Hernan Monserrat <16483541+hemonserrat@users.noreply.github.com>
1 parent 945e74e commit f3e9d4d

1 file changed

Lines changed: 42 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,48 @@ jobs:
8686
8787
- name: Generate changelog
8888
id: changelog
89-
run: |
90-
# Simple changelog generation - you might want to use a more sophisticated tool
91-
echo "## Changes" > CHANGELOG.md
92-
git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 HEAD^)..HEAD >> CHANGELOG.md || echo "- Initial release" >> CHANGELOG.md
93-
{
94-
echo "changelog<<EOF"
95-
cat CHANGELOG.md
96-
echo "EOF"
97-
} >> $GITHUB_OUTPUT
89+
uses: mikepenz/release-changelog-builder-action@v5
90+
with:
91+
configuration: |
92+
{
93+
"categories": [
94+
{
95+
"title": "## 🚀 Features",
96+
"labels": ["feature", "enhancement"]
97+
},
98+
{
99+
"title": "## 🐛 Bug Fixes",
100+
"labels": ["bug", "fix"]
101+
},
102+
{
103+
"title": "## 🔧 Maintenance",
104+
"labels": ["chore", "ci", "deps"]
105+
},
106+
{
107+
"title": "## 📚 Documentation",
108+
"labels": ["docs", "documentation"]
109+
}
110+
],
111+
"template": "#{{CHANGELOG}}\n\n## Other Changes\n#{{UNCATEGORIZED}}",
112+
"pr_template": "- #{{TITLE}} (#{{NUMBER}})",
113+
"empty_template": "- No changes in this release",
114+
"transformers": [
115+
{
116+
"pattern": "^(feat|feature)(\\(.+\\))?!?:",
117+
"target": "🚀 $1"
118+
},
119+
{
120+
"pattern": "^(fix|bug)(\\(.+\\))?!?:",
121+
"target": "🐛 $1"
122+
},
123+
{
124+
"pattern": "^(chore|ci|deps)(\\(.+\\))?!?:",
125+
"target": "🔧 $1"
126+
}
127+
]
128+
}
129+
env:
130+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98131

99132
- name: Create GitHub Release
100133
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)