From d450effe85898d42bf0ccc3329d07f9372741245 Mon Sep 17 00:00:00 2001 From: "Ivan Zosimov (Akvelon INC)" Date: Tue, 22 Feb 2022 12:01:12 +0300 Subject: [PATCH] Rebuild action with some small changes. Changes were applied to some debug messages. --- dist/setup/index.js | 2 +- src/cache-restore.ts | 2 +- src/cache-save.ts | 1 - src/cache-utils.ts | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 6ac8281..b1d5d65 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -34255,7 +34255,7 @@ exports.restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0 const cacheKey = yield cache.restoreCache([cachePath], primaryKey); core.setOutput('cache-hit', Boolean(cacheKey)); if (!cacheKey) { - core.info(`${packageManager} cache is not found`); + core.info(`Cache is not found`); return; } core.saveState(constants_1.State.CacheMatchedKey, cacheKey); diff --git a/src/cache-restore.ts b/src/cache-restore.ts index c659090..97af641 100644 --- a/src/cache-restore.ts +++ b/src/cache-restore.ts @@ -40,7 +40,7 @@ export const restoreCache = async ( core.setOutput('cache-hit', Boolean(cacheKey)); if (!cacheKey) { - core.info(`${packageManager} cache is not found`); + core.info(`Cache is not found`); return; } diff --git a/src/cache-save.ts b/src/cache-save.ts index a1a80c6..027b114 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -21,7 +21,6 @@ export async function run() { } const cachePackages = async () => { - const cachingFlag = core.getInput('cache'); if (!cachingFlag) return; diff --git a/src/cache-utils.ts b/src/cache-utils.ts index 56ce35e..24deb52 100644 --- a/src/cache-utils.ts +++ b/src/cache-utils.ts @@ -1,4 +1,3 @@ -import * as core from '@actions/core'; import * as exec from '@actions/exec'; export interface PackageManagerInfo {