mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-27 22:49:17 +01:00
Fix cache save
This commit is contained in:
parent
2fbb473cf9
commit
15ed468872
4 changed files with 8 additions and 8 deletions
4
dist/restore-only/index.js
vendored
4
dist/restore-only/index.js
vendored
|
@ -3360,10 +3360,10 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||||
console.debug(`Cache Service Version: ${constants_1.CacheServiceVersion}`);
|
console.debug(`Cache Service Version: ${constants_1.CacheServiceVersion}`);
|
||||||
switch (constants_1.CacheServiceVersion) {
|
switch (constants_1.CacheServiceVersion) {
|
||||||
case "v2":
|
case "v2":
|
||||||
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
||||||
case "v1":
|
case "v1":
|
||||||
default:
|
default:
|
||||||
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
4
dist/restore/index.js
vendored
4
dist/restore/index.js
vendored
|
@ -3360,10 +3360,10 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||||
console.debug(`Cache Service Version: ${constants_1.CacheServiceVersion}`);
|
console.debug(`Cache Service Version: ${constants_1.CacheServiceVersion}`);
|
||||||
switch (constants_1.CacheServiceVersion) {
|
switch (constants_1.CacheServiceVersion) {
|
||||||
case "v2":
|
case "v2":
|
||||||
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
||||||
case "v1":
|
case "v1":
|
||||||
default:
|
default:
|
||||||
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
4
dist/save-only/index.js
vendored
4
dist/save-only/index.js
vendored
|
@ -3360,10 +3360,10 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||||
console.debug(`Cache Service Version: ${constants_1.CacheServiceVersion}`);
|
console.debug(`Cache Service Version: ${constants_1.CacheServiceVersion}`);
|
||||||
switch (constants_1.CacheServiceVersion) {
|
switch (constants_1.CacheServiceVersion) {
|
||||||
case "v2":
|
case "v2":
|
||||||
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
||||||
case "v1":
|
case "v1":
|
||||||
default:
|
default:
|
||||||
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
4
dist/save/index.js
vendored
4
dist/save/index.js
vendored
|
@ -3360,10 +3360,10 @@ function saveCache(paths, key, options, enableCrossOsArchive = false) {
|
||||||
console.debug(`Cache Service Version: ${constants_1.CacheServiceVersion}`);
|
console.debug(`Cache Service Version: ${constants_1.CacheServiceVersion}`);
|
||||||
switch (constants_1.CacheServiceVersion) {
|
switch (constants_1.CacheServiceVersion) {
|
||||||
case "v2":
|
case "v2":
|
||||||
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
||||||
case "v1":
|
case "v1":
|
||||||
default:
|
default:
|
||||||
return yield saveCachev2(paths, key, options, enableCrossOsArchive);
|
return yield saveCachev1(paths, key, options, enableCrossOsArchive);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue