diff --git a/.github/workflows/check-code.yml b/.github/workflows/check-code.yml index 35aea344..39d19f94 100644 --- a/.github/workflows/check-code.yml +++ b/.github/workflows/check-code.yml @@ -51,21 +51,7 @@ jobs: with: fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v4 - - - name: Determine cache hash - run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - - - name: Cache pre-commit - uses: actions/cache@v3 - with: - path: ~/.cache/pre-commit - key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} - - name: Run pre-commit uses: pre-commit/action@v3.0.0 - # this action also provides an additional behaviour when used in private repositories - # when configured with a github token, the action will push back fixes to the pull request branch - # with: - # token: ${{ secrets.GITHUB_TOKEN }} + with: + token: ${{ secrets.GITHUB_TOKEN }}