mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
fix: save only when the cache is not hit
This commit is contained in:
parent
bd26ebd2c7
commit
02c0817c8f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue