Skip to content

Commit 4aef83c

Browse files
committed
Update build action: add timezone and update information of git user
1 parent bd796c4 commit 4aef83c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
python3 utils/genIndex.py
2323
- name: git config
2424
run: |
25-
git config --global user.name "ustc-course"
26-
git config --global user.email "ustc_course@163.com"
25+
git config --global user.name "mbinary"
26+
git config --global user.email "zhuheqin1@gmail.com"
2727
- name: generate pages and push to gh-pages branch
2828
env:
2929
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
@@ -32,6 +32,7 @@ jobs:
3232
git init
3333
git remote add origin [email protected]:USTC-Resource/USTC-Course.git
3434
git add --all
35+
export TZ='Asia/Shanghai'
3536
git commit -m "Update webpages at `date +%Y-%m-%d,%H:%m` UTC+8"
3637
git push -f "https://${ACCESS_TOKEN}@github.com/USTC-Resource/USTC-Course" master:gh-pages
3738

0 commit comments

Comments
 (0)