|
|
@ -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 |
|
|
|