mirror of
https://github.com/NatsumeLS/Gakumas-Translation-Data-EN.git
synced 2026-02-06 17:52:32 +00:00
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:
13
.github/workflows/check.yml
vendored
13
.github/workflows/check.yml
vendored
@@ -95,6 +95,11 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Write Branch and Hash Info with Date
|
||||||
run: |
|
run: |
|
||||||
branch=$(git rev-parse --abbrev-ref HEAD)
|
branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
@@ -104,6 +109,14 @@ jobs:
|
|||||||
echo "VERSION=$branch.$hash.$date" >> $GITHUB_ENV
|
echo "VERSION=$branch.$hash.$date" >> $GITHUB_ENV
|
||||||
echo "RELEASE_DATE=$(date +'%Y-%m-%d')" >> $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
|
- name: Create ZIP Archive
|
||||||
run: |
|
run: |
|
||||||
zip -r Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip local-files version.txt
|
zip -r Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip local-files version.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user