判断是否commit

This commit is contained in:
jaredliw 2021-07-24 11:21:06 +08:00
parent 756e952567
commit a356df2473

View File

@ -26,7 +26,7 @@ jobs:
run: | run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]" 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 - name: Push changes
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master