diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index 2bf7d32..3f89c24 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -100111,7 +100111,7 @@ const canSaveToS3 = process.env["RUNS_ON_S3_BUCKET_CACHE"] !== undefined; function restoreImpl(stateProvider, earlyExit) { return __awaiter(this, void 0, void 0, function* () { try { - if (!utils.isCacheFeatureAvailable()) { + if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) { core.setOutput(constants_1.Outputs.CacheHit, "false"); return; } diff --git a/dist/restore/index.js b/dist/restore/index.js index 6b5354f..4db194b 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -100111,7 +100111,7 @@ const canSaveToS3 = process.env["RUNS_ON_S3_BUCKET_CACHE"] !== undefined; function restoreImpl(stateProvider, earlyExit) { return __awaiter(this, void 0, void 0, function* () { try { - if (!utils.isCacheFeatureAvailable()) { + if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) { core.setOutput(constants_1.Outputs.CacheHit, "false"); return; } diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 6975e3a..c263025 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -100116,7 +100116,7 @@ function saveImpl(stateProvider) { return __awaiter(this, void 0, void 0, function* () { let cacheId = -1; try { - if (!utils.isCacheFeatureAvailable()) { + if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) { return; } if (!utils.isValidEvent()) { diff --git a/dist/save/index.js b/dist/save/index.js index a0670b0..ff36b67 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -100116,7 +100116,7 @@ function saveImpl(stateProvider) { return __awaiter(this, void 0, void 0, function* () { let cacheId = -1; try { - if (!utils.isCacheFeatureAvailable()) { + if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) { return; } if (!utils.isValidEvent()) {