From 1180c13e3d05f02754ba95617f7046defbf852f3 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 9 Jul 2020 16:59:11 +0800 Subject: [PATCH] chore: remove github-push-action --- .github/workflows/format.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 611f255b47..76f6c9d5de 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -21,8 +21,4 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - 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: - github_token: ${{ secrets.GITHUB_TOKEN }} + 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)