From ae8f4b590daf95397dd244ce7b392e6d78d516f3 Mon Sep 17 00:00:00 2001 From: olen Date: Thu, 14 May 2026 14:41:01 +0200 Subject: [PATCH] ci: use GitHub native release notes generator Replace the abandoned heinrichreimer/github-changelog-generator-action (last release 2022) and InsonusK/get-latest-release with softprops/action-gh-release's built-in generate_release_notes option, which calls GitHub's /releases/generate-notes API server-side. This also fixes the %0A line-break encoding in release bodies (#225): the previous flow interpolated the changelog action's output through ${{ }} into a body string, which exposed legacy ::set-output:: URL encoding now that GitHub Actions has stopped auto-decoding it. generate_release_notes bypasses string interpolation entirely. Categorization (Features / Bug Fixes / Other) can be tuned later by adding an optional .github/release.yml config. --- .github/workflows/release.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 76808f6..ca04155 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,13 +53,6 @@ jobs: exit 1 fi - - name: "🗝️ Get previous release version" - id: last_release - uses: InsonusK/get-latest-release@v1.1.0 - with: - myToken: ${{ github.token }} - exclude_types: "draft|prerelease" - - name: "🏷️ Create new tag" uses: rickstaa/action-create-tag@v1 id: "tag_create" @@ -68,21 +61,12 @@ jobs: tag_exists_error: false message: "✅ Tag Version v${{ env.VERSION }} created" - - name: "🗒️ Generate release changelog" - id: changelog - uses: heinrichreimer/github-changelog-generator-action@v2.4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - sinceTag: ${{ steps.last_release.outputs.tag_name }} - headerLabel: "# Notable changes since ${{ steps.last_release.outputs.tag_name }}" - stripGeneratorNotice: true - - name: 🚀 Create GitHub Release uses: softprops/action-gh-release@v3 with: tag_name: v${{ env.VERSION }} name: 🎉 Release v${{ env.VERSION }} - body: "${{ steps.changelog.outputs.changelog }}" + generate_release_notes: true draft: false prerelease: false