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