mirror of
https://github.com/NatsumeLS/Gakumas-Translation-Data-EN.git
synced 2026-02-04 00:54:53 +00:00
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.
This commit is contained in:
12
.github/workflows/check.yml
vendored
12
.github/workflows/check.yml
vendored
@@ -120,13 +120,21 @@ jobs:
|
||||
run: |
|
||||
zip -r Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip local-files version.txt
|
||||
|
||||
- name: Generate Changelog
|
||||
run: |
|
||||
echo "This is an automated release of the latest translation data." > CHANGELOG.md
|
||||
echo "" >> CHANGELOG.md
|
||||
echo "## Changelog" >> CHANGELOG.md
|
||||
git log $(git describe --tags --abbrev=0 @^)..@ --pretty=format:"- %s" >> CHANGELOG.md
|
||||
echo "" >> CHANGELOG.md
|
||||
cat CHANGELOG.md
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: ${{ env.VERSION }}
|
||||
name: Translation Update ${{ env.RELEASE_DATE }}
|
||||
body: |
|
||||
This is an automated release of the latest translation data.
|
||||
body_path: CHANGELOG.md
|
||||
files: |
|
||||
Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip
|
||||
draft: false
|
||||
|
||||
Reference in New Issue
Block a user