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)