fix: save only when the cache is not hit
This commit is contained in:
parent
bd26ebd2c7
commit
02c0817c8f
@ -59,7 +59,7 @@ export default async (options?: {
|
|||||||
"Downloaded a new version of Bun, but failed to check its version? Try again in debug mode."
|
"Downloaded a new version of Bun, but failed to check its version? Try again in debug mode."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (cacheEnabled) {
|
if (cacheEnabled && !cacheHit) {
|
||||||
try {
|
try {
|
||||||
await saveCache([path], cacheKey);
|
await saveCache([path], cacheKey);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user