diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 54ea5f083..8cda7968b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,4 +11,11 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 + - name: Cache Pre-commit + uses: actions/cache@v3 + with: + path: ~/.cache/pre-commit + key: ${{ runner.os }}-pre-commit-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-pre-commit- - uses: pre-commit/action@v3.0.0 \ No newline at end of file