Skip to content

Commit 25d9d41

Browse files
committed
Improve caching
1 parent d7699a6 commit 25d9d41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pre-commit.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ jobs:
4747

4848
- name: Save pre-commit cache
4949
uses: actions/cache/save@v4
50-
if: always()
50+
if: ${{ always() && steps.restore-cache.outputs.cache-hit != 'true' }}
51+
continue-on-error: true
5152
with:
5253
path: |
5354
~/.cache/pre-commit

0 commit comments

Comments
 (0)