diff --git a/.github/workflows/pre-commit-check.yaml b/.github/workflows/pre-commit-check.yaml index 4c3cf88a..0dc9ab8e 100644 --- a/.github/workflows/pre-commit-check.yaml +++ b/.github/workflows/pre-commit-check.yaml @@ -42,7 +42,7 @@ jobs: # run if no changed files were detected (e.g. workflow_dispatch on master branch) - name: Run against all files - uses: pre-commit/action@v2.0.3 + uses: pre-commit/action@v3.0.1 if: steps.filter.outputs.addedOrModified != 'true' with: extra_args: --all-files @@ -50,7 +50,7 @@ jobs: if: always() - name: Commit pre-commit changes - if: github.event.action != 'pull_request' + if: always() && github.event.action != 'pull_request' run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com"