From cd84f52282cfe25d9450486bcd2a5d68bd5e14dd Mon Sep 17 00:00:00 2001 From: Natsu Date: Thu, 20 Mar 2025 19:35:16 +0700 Subject: [PATCH] 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. --- .github/workflows/check.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5e59feb5..ffe53362 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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