1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-go synced 2025-06-24 18:58:01 +02:00

cache-restore-only

This commit is contained in:
Sergey Dolin 2023-07-25 19:29:37 +02:00
parent db8764c1e2
commit 28cfea2580
6 changed files with 30 additions and 1 deletions

View file

@ -58457,6 +58457,10 @@ process.on('uncaughtException', e => {
});
function run() {
return __awaiter(this, void 0, void 0, function* () {
if (core.getState(constants_1.State.CacheRestoreOnly) === constants_1.State.True) {
core.info('"cache-restore-only" set to true, skip caching');
return;
}
try {
yield cachePackages();
}
@ -58622,6 +58626,9 @@ var State;
(function (State) {
State["CachePrimaryKey"] = "CACHE_KEY";
State["CacheMatchedKey"] = "CACHE_RESULT";
State["CacheRestoreOnly"] = "CACHE_RESTORE_ONLY";
State["True"] = "true";
State["False"] = "false";
})(State = exports.State || (exports.State = {}));
var Outputs;
(function (Outputs) {