chore(update): Re-add Git authorization and commit/push steps to check.yml

This commit re-adds the Git authorization and commit/push steps to the check.yml workflow. These steps were removed in a previous commit, but are needed to update the version info.
This commit is contained in:
2025-03-20 19:35:16 +07:00
parent bb06b412f4
commit cd84f52282

View File

@@ -95,6 +95,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Authorize Git
run: |
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config --global user.name "$GITHUB_ACTOR"
- name: Write Branch and Hash Info with Date
run: |
branch=$(git rev-parse --abbrev-ref HEAD)
@@ -104,6 +109,14 @@ jobs:
echo "VERSION=$branch.$hash.$date" >> $GITHUB_ENV
echo "RELEASE_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Commit Changes
run: |
git pull
git commit -am "chore(update): Update Version Info"
git push origin HEAD
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: Create ZIP Archive
run: |
zip -r Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip local-files version.txt