From b389ff06fbccc98d1b1703c511079b1e7fd404d6 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 10 Jul 2020 11:48:15 +0800 Subject: [PATCH] chore: fix format --- .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 900e83583..81e3ea6f4 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -11,7 +11,6 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - uses: actions/setup-node@v1 with: node-version: '12' @@ -21,4 +20,5 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" + git status git diff-index --quiet HEAD || (git commit -m "style: auto format" -a --no-verify && git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:master)