From 5776bad8985219aeb71a7133a46479b3e6bca957 Mon Sep 17 00:00:00 2001 From: AnyaCoder Date: Thu, 10 Oct 2024 16:02:21 +0800 Subject: [PATCH] fix pre-commit --- .github/workflows/pre-commit.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ae4c64f..afe0b40 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -17,8 +17,9 @@ jobs: - uses: pre-commit/action@v3.0.1 with: extra_args: --all-files + continue-on-error: true - name: Push changes back to repo - if: ${{ steps.pre-commit.outcome == 'failure' }} + if: ${{ steps.pre-commit.outputs.result == 'modified' }} run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com"