diff --git a/.github/workflows/pre-commit-action.yml b/.github/workflows/pre-commit-action.yml index 80fc7c87..33462194 100644 --- a/.github/workflows/pre-commit-action.yml +++ b/.github/workflows/pre-commit-action.yml @@ -1,3 +1,5 @@ +# Snippets for how to only run on changed PR files can be found +# here: https://github.com/pre-commit/action/issues/7#issuecomment-1251300704 name: Run pre-commit workflow on: pull_request: @@ -8,6 +10,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - uses: actions/setup-python@v5 name: Install Python 3.10 with: