判断是否commit

pull/38/head
jaredliw 2021-07-24 11:21:06 +08:00
parent 756e952567
commit a356df2473
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ jobs:
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -am "代码重构 【Github Actions】"
git diff-index --quiet HEAD -- || git commit -am "代码重构 【Github Actions】"
- name: Push changes
uses: ad-m/github-push-action@master