mirror of
https://github.com/NatsumeLS/Gakumas-Translation-Data-EN.git
synced 2026-02-04 09:04:54 +00:00
feat: Update release body and add changelog to release notes
This commit updates the release body to a static message and adds the changelog to the release notes. The `body_path` parameter in the `softprops/action-gh-release` action is replaced with a static message. A new step is added to update the GitHub release with the generated changelog using the GitHub CLI. This ensures the changelog is included in the release notes.
This commit is contained in:
29
.github/workflows/check.yml
vendored
29
.github/workflows/check.yml
vendored
@@ -120,6 +120,20 @@ jobs:
|
||||
run: |
|
||||
zip -r Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip local-files version.txt
|
||||
|
||||
- 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.
|
||||
files: |
|
||||
Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip
|
||||
draft: false
|
||||
prerelease: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||
|
||||
- name: Generate Changelog
|
||||
run: |
|
||||
echo "This is an automated release of the latest translation data." > CHANGELOG.md
|
||||
@@ -129,18 +143,11 @@ jobs:
|
||||
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_path: CHANGELOG.md
|
||||
files: |
|
||||
Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Update GitHub Release with Changelog
|
||||
run: |
|
||||
gh release edit ${{ env.VERSION }} --notes-file CHANGELOG.md
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||
GH_TOKEN: ${{ secrets.PAT }}
|
||||
|
||||
- name: Send Notification to Discord
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
|
||||
Reference in New Issue
Block a user