Skip to content

Commit 8cf38d3

Browse files
committed
chore(workflows): update cache keys for pre-commit workflows to improve cache management
1 parent 2935fbc commit 8cf38d3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/cache-warmup.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4949
with:
5050
path: ~/.cache/pre-commit
51-
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}}}
51+
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}-warmup
52+
restore-keys: ${{ runner.os }}-pre-commit-
5253

5354
- name: Run pre-commit
5455
run: pre-commit install --install-hooks

.github/workflows/pre-commit.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
6060
with:
6161
path: ~/.cache/pre-commit
62-
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}}}
62+
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
63+
restore-keys: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}-
6364

6465
- name: Run pre-commit
6566
run: pre-commit run --show-diff-on-failure --color=always --all-files

0 commit comments

Comments
 (0)