Skip to content

Commit 5b856ed

Browse files
Fix for cache hit warnings in GitHub
Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
1 parent f6c4dd8 commit 5b856ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
run: sudo chown -R "$(id -u):$(id -g)" mkosi.output/
149149

150150
- name: Save kernel cache
151-
if: github.ref == 'refs/heads/main'
151+
if: github.ref == 'refs/heads/main' && steps.kernel-cache.outputs.cache-hit != 'true'
152152
uses: actions/cache/save@v4
153153
with:
154154
path: |
@@ -198,7 +198,7 @@ jobs:
198198
run: ./build.py tools
199199

200200
- name: Save tools cache
201-
if: github.ref == 'refs/heads/main'
201+
if: github.ref == 'refs/heads/main' && steps.tools-cache.outputs.cache-hit != 'true'
202202
uses: actions/cache/save@v4
203203
with:
204204
path: |

0 commit comments

Comments
 (0)