From 3c6f937a39d508db74187bbd619bd4c5a86a7cf1 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Tue, 5 Dec 2023 11:52:21 +0100 Subject: [PATCH] add comment --- dist/cache-save/index.js | 3 +++ src/cache-save.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 0dc115a98..89468f921 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -80467,6 +80467,9 @@ const core = __importStar(__nccwpck_require__(2186)); const cache = __importStar(__nccwpck_require__(7799)); const fs_1 = __importDefault(__nccwpck_require__(7147)); const cache_distributor_1 = __nccwpck_require__(8953); +// Added early exit to resolve issue with slow post action step: +// - https://github.com/actions/setup-node/issues/878 +// https://github.com/actions/cache/pull/1217 function run(earlyExit) { return __awaiter(this, void 0, void 0, function* () { try { diff --git a/src/cache-save.ts b/src/cache-save.ts index 2319fcd25..cdf914742 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -4,6 +4,9 @@ import * as cache from '@actions/cache'; import fs from 'fs'; import {State} from './cache-distributions/cache-distributor'; +// Added early exit to resolve issue with slow post action step: +// - https://github.com/actions/setup-node/issues/878 +// https://github.com/actions/cache/pull/1217 export async function run(earlyExit?: boolean) { try { const cache = core.getInput('cache');