From 72290709ffae4e74c8d03898eba40dc98715aad1 Mon Sep 17 00:00:00 2001 From: Sekwah Date: Mon, 18 Nov 2024 19:03:42 +0000 Subject: [PATCH] chore: update readme --- .github/workflows/pre-commit-check.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit-check.yaml b/.github/workflows/pre-commit-check.yaml index 69fe6a5f..ee7426bf 100644 --- a/.github/workflows/pre-commit-check.yaml +++ b/.github/workflows/pre-commit-check.yaml @@ -48,7 +48,7 @@ jobs: extra_args: --all-files - name: Commit pre-commit changes - if: always() + if: github.event_name != 'pull_request' && always() run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" @@ -58,7 +58,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Push pre-commit changes - if: always() && github.event.action != 'pull_request' && github.event.action != 'labeled' && github.event.action != 'synchronize' + if: github.event_name != 'pull_request' && github.event.action != 'labeled' && github.event.action != 'synchronize' && always() run: | git push ${{ github.head_ref }} env: