From 82c641aba88cbbc3b9841ead893088814af9e174 Mon Sep 17 00:00:00 2001 From: Estrella Pan Date: Sat, 24 Jan 2026 06:55:26 +0100 Subject: [PATCH] ci: use changelog file as release body for pre-releases Tag pushes (beta/alpha) don't have a PR body, so fall back to reading docs/changelog/3.2.md for the release notes. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97e22d17..a335e7d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -318,13 +318,22 @@ jobs: echo "pre_release=false" >> $GITHUB_OUTPUT fi + - name: Read changelog + id: changelog + run: | + if [ -f docs/changelog/3.2.md ]; then + echo "body<> $GITHUB_OUTPUT + cat docs/changelog/3.2.md >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + fi + - name: Release id: release uses: softprops/action-gh-release@v1 with: tag_name: ${{ needs.version-info.outputs.version }} name: ${{ steps.release-info.outputs.version }} - body: ${{ github.event.pull_request.body }} + body: ${{ github.event.pull_request.body || steps.changelog.outputs.body }} draft: false prerelease: ${{ steps.release-info.outputs.pre_release == 'true' }} files: |