Browse Source

👷 Add cache for pre-commit hooks

pull/12021/head
Sebastián Ramírez 8 months ago
parent
commit
d86ba58c16
  1. 5
      .github/workflows/autofix.yml

5
.github/workflows/autofix.yml

@ -31,6 +31,11 @@ jobs:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
- uses: actions/cache@v4
id: pre-commit-hooks-cache
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-hooks-${{ hashFiles('.pre-commit-config.yml') }}-v01
- run: pre-commit run ${{ steps.changed-files.outputs.all_changed_files }}
# Allow debugging with tmate
- name: Setup tmate session

Loading…
Cancel
Save