Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 84f5486

Browse files
committed
Attempt to automatically generate release notes for a release
1 parent 97da594 commit 84f5486

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,24 @@ jobs:
4848
id: get_version
4949
run: |
5050
echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
51+
- name: Generate Release Notes
52+
run: |
53+
release_notes=$(gh api repos/{owner}/{repo}/releases/generate-notes -F tag_name=${{ github.ref }} --jq .body)
54+
echo 'RELEASE_NOTES<<EOF' >> $GITHUB_ENV
55+
echo "${release_notes}" >> $GITHUB_ENV
56+
echo 'EOF' >> $GITHUB_ENV
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
OWNER: ${{ github.repository_owner }}
60+
REPO: ${{ github.event.repository.name }}
5161
- name: Create Release
5262
id: create_release
5363
uses: actions/[email protected]
5464
env:
5565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5666
with:
5767
tag_name: ${{ env.VERSION }}
68+
body: ${{ env.RELEASE_NOTES }}
5869
release_name: ${{ env.VERSION }}
5970
draft: false
6071
prerelease: false

0 commit comments

Comments
 (0)