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.
This commit is contained in:
Andreas Gohr
2024-09-02 20:50:00 +02:00
parent ca8970c100
commit bc0293420f

View File

@ -22,7 +22,9 @@ jobs:
uses: actions/cache@v4
with:
path: .github/matrix.cache/
key: ${{ runner.os }}-matrix-${{ hashFiles('.github/matrix.php') }}
key: ${{ runner.os }}-matrix-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-matrix-
- name: Set up matrix
id: set-matrix
run: |