Skip to content

Commit bc02934

Browse files
committed
use partial restore key in github action
We use a unique hash key on each run, this ensures the cache gets rewritten on each run. The partial restore then loads the newest key on the next run.
1 parent ca8970c commit bc02934

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
uses: actions/cache@v4
2323
with:
2424
path: .github/matrix.cache/
25-
key: ${{ runner.os }}-matrix-${{ hashFiles('.github/matrix.php') }}
25+
key: ${{ runner.os }}-matrix-${{ github.run_id }}
26+
restore-keys: |
27+
${{ runner.os }}-matrix-
2628
- name: Set up matrix
2729
id: set-matrix
2830
run: |

0 commit comments

Comments
 (0)