From bc39c3be6a8341a886d447f5de05ebc46885a1ea Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 9 Jul 2020 16:50:51 +0800 Subject: [PATCH] chore: fix nothing to commit error --- .github/workflows/format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7c9c7ed3e0..611f255b47 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -21,7 +21,7 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -m "style: auto format" -a + git diff-index --quiet HEAD || git commit -m "style: auto format" -a --no-verify - name: Push changes uses: ad-m/github-push-action@master with: