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 {