Skip to content

Commit 82c641a

Browse files
EstrellaXDclaudehappy-otter
committed
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 <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
1 parent 8e10d09 commit 82c641a

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,22 @@ jobs:
318318
echo "pre_release=false" >> $GITHUB_OUTPUT
319319
fi
320320
321+
- name: Read changelog
322+
id: changelog
323+
run: |
324+
if [ -f docs/changelog/3.2.md ]; then
325+
echo "body<<EOF" >> $GITHUB_OUTPUT
326+
cat docs/changelog/3.2.md >> $GITHUB_OUTPUT
327+
echo "EOF" >> $GITHUB_OUTPUT
328+
fi
329+
321330
- name: Release
322331
id: release
323332
uses: softprops/action-gh-release@v1
324333
with:
325334
tag_name: ${{ needs.version-info.outputs.version }}
326335
name: ${{ steps.release-info.outputs.version }}
327-
body: ${{ github.event.pull_request.body }}
336+
body: ${{ github.event.pull_request.body || steps.changelog.outputs.body }}
328337
draft: false
329338
prerelease: ${{ steps.release-info.outputs.pre_release == 'true' }}
330339
files: |

0 commit comments

Comments
 (0)