Skip to content

Commit b55c589

Browse files
committed
fix cache
1 parent b12fc0c commit b55c589

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/run-examples.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ jobs:
2828
uses: actions/cache@v4
2929
with:
3030
path: .example-cache
31-
key: examples-cache-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
31+
key: examples-cache-${{ github.head_ref || github.ref_name }}-${{ matrix.example }}-${{ github.sha }}
3232
restore-keys: |
33+
examples-cache-${{ github.head_ref || github.ref_name }}-${{ matrix.example }}-
3334
examples-cache-${{ github.head_ref || github.ref_name }}-
3435
examples-cache-main-
3536
@@ -125,8 +126,9 @@ jobs:
125126
uses: actions/cache@v4
126127
with:
127128
path: .example-cache
128-
key: examples-cache-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
129+
key: examples-cache-${{ github.head_ref || github.ref_name }}-${{ matrix.example }}-${{ github.sha }}
129130
restore-keys: |
131+
examples-cache-${{ github.head_ref || github.ref_name }}-${{ matrix.example }}-
130132
examples-cache-${{ github.head_ref || github.ref_name }}-
131133
examples-cache-main-
132134
@@ -178,7 +180,7 @@ jobs:
178180
uses: actions/cache/save@v4
179181
with:
180182
path: .example-cache
181-
key: examples-cache-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
183+
key: examples-cache-${{ github.head_ref || github.ref_name }}-${{ matrix.example }}-${{ github.sha }}
182184

183185
# Summary job: Report overall results
184186
examples-summary:

0 commit comments

Comments
 (0)