Skip to content

Commit ca1b14d

Browse files
committed
Make cache key unique per-run.
1 parent 410af61 commit ca1b14d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ jobs:
104104
uses: actions/cache/restore@v4
105105
with:
106106
path: out
107-
key: build-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}
107+
key: build-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}-${{ github.run_id }}
108108
restore-keys: |
109-
build-${{ runner.os }}-main
109+
build-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}-
110+
build-${{ runner.os }}-main-
110111
build-${{ runner.os }}-
111112
112113
- name: Setup build environment
@@ -166,4 +167,4 @@ jobs:
166167
uses: actions/cache/save@v4
167168
with:
168169
path: out
169-
key: build-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}
170+
key: build-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}-${{ github.run_id }}

0 commit comments

Comments
 (0)