Skip to content

Commit b57c2a5

Browse files
committed
feat: Generate changelog and use it for release body
This commit introduces a changelog generation step in the `check.yml` workflow. The changelog is generated using `git log` to capture commit messages since the last tag. The generated `CHANGELOG.md` file is then used as the body for the GitHub release, providing a more informative release description.
1 parent a968d09 commit b57c2a5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/check.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,21 @@ jobs:
120120
run: |
121121
zip -r Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip local-files version.txt
122122
123+
- name: Generate Changelog
124+
run: |
125+
echo "This is an automated release of the latest translation data." > CHANGELOG.md
126+
echo "" >> CHANGELOG.md
127+
echo "## Changelog" >> CHANGELOG.md
128+
git log $(git describe --tags --abbrev=0 @^)..@ --pretty=format:"- %s" >> CHANGELOG.md
129+
echo "" >> CHANGELOG.md
130+
cat CHANGELOG.md
131+
123132
- name: Create GitHub Release
124133
uses: softprops/action-gh-release@v1
125134
with:
126135
tag_name: ${{ env.VERSION }}
127136
name: Translation Update ${{ env.RELEASE_DATE }}
128-
body: |
129-
This is an automated release of the latest translation data.
137+
body_path: CHANGELOG.md
130138
files: |
131139
Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip
132140
draft: false

0 commit comments

Comments
 (0)