Skip to content

Commit cd84f52

Browse files
committed
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.
1 parent bb06b41 commit cd84f52

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/check.yml

+13
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ jobs:
9595
- name: Checkout
9696
uses: actions/checkout@v4
9797

98+
- name: Authorize Git
99+
run: |
100+
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
101+
git config --global user.name "$GITHUB_ACTOR"
102+
98103
- name: Write Branch and Hash Info with Date
99104
run: |
100105
branch=$(git rev-parse --abbrev-ref HEAD)
@@ -104,6 +109,14 @@ jobs:
104109
echo "VERSION=$branch.$hash.$date" >> $GITHUB_ENV
105110
echo "RELEASE_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
106111
112+
- name: Commit Changes
113+
run: |
114+
git pull
115+
git commit -am "chore(update): Update Version Info"
116+
git push origin HEAD
117+
env:
118+
GITHUB_TOKEN: ${{ secrets.PAT }}
119+
107120
- name: Create ZIP Archive
108121
run: |
109122
zip -r Gakumas-Translation-Data-EN-${{ env.VERSION }}.zip local-files version.txt

0 commit comments

Comments
 (0)