From d86ba58c16746b8e3b84d4353d12078685df8c61 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 14 Aug 2024 19:34:46 -0500 Subject: [PATCH] =?utf8?q?=F0=9F=91=B7=20Add=20cache=20for=20pre-commit=20?= =?utf8?q?hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .github/workflows/autofix.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 31a009c27d..7f0c773345 100644 --- a/.github/workflows/autofix.yml +++ b/.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 -- 2.47.3