From 71a268f01ab91c7d1e48f932d8670afced970fde Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Tue, 14 Oct 2025 20:52:01 +0200 Subject: [PATCH] build --- dist/restore-only/index.js | 2 +- dist/restore/index.js | 2 +- dist/save-only/index.js | 2 +- dist/save/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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()) {