黑魔法解决git push返回值
Build and Publish / Run (push) Has been cancelled Details
Build and Publish / Format (push) Failing after 2m58s Details

This commit is contained in:
cxykevin 2024-07-07 21:32:03 +08:00
parent c02292a977
commit 3cd30e68cc
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ jobs:
lint-md src/**/* --threads=8 --fix --suppress-warnings lint-md src/**/* --threads=8 --fix --suppress-warnings
- name: Commit files - name: Commit files
run: | run: |
black --check . || black --fast .
git config --global user.name "studyareacn-format-bot" git config --global user.name "studyareacn-format-bot"
git config --global user.email "studyareacn-format@noreply.localhost" git config --global user.email "studyareacn-format@noreply.localhost"
git remote set-url origin https://${{ secrets.GIT_USER }}:${{ secrets.GIT_PASSWD }}@git.hmtsai.cn/study-area-cn/study-area-cn git remote set-url origin https://${{ secrets.GIT_USER }}:${{ secrets.GIT_PASSWD }}@git.hmtsai.cn/study-area-cn/study-area-cn