Rebuild action with some small changes.

Changes were applied to some debug messages.
This commit is contained in:
Ivan Zosimov (Akvelon INC) 2022-02-22 12:01:12 +03:00
parent 8dd60badf6
commit d450effe85
4 changed files with 2 additions and 4 deletions

2
dist/setup/index.js vendored
View file

@ -34255,7 +34255,7 @@ exports.restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0
const cacheKey = yield cache.restoreCache([cachePath], primaryKey); const cacheKey = yield cache.restoreCache([cachePath], primaryKey);
core.setOutput('cache-hit', Boolean(cacheKey)); core.setOutput('cache-hit', Boolean(cacheKey));
if (!cacheKey) { if (!cacheKey) {
core.info(`${packageManager} cache is not found`); core.info(`Cache is not found`);
return; return;
} }
core.saveState(constants_1.State.CacheMatchedKey, cacheKey); core.saveState(constants_1.State.CacheMatchedKey, cacheKey);

View file

@ -40,7 +40,7 @@ export const restoreCache = async (
core.setOutput('cache-hit', Boolean(cacheKey)); core.setOutput('cache-hit', Boolean(cacheKey));
if (!cacheKey) { if (!cacheKey) {
core.info(`${packageManager} cache is not found`); core.info(`Cache is not found`);
return; return;
} }

View file

@ -21,7 +21,6 @@ export async function run() {
} }
const cachePackages = async () => { const cachePackages = async () => {
const cachingFlag = core.getInput('cache'); const cachingFlag = core.getInput('cache');
if (!cachingFlag) return; if (!cachingFlag) return;

View file

@ -1,4 +1,3 @@
import * as core from '@actions/core';
import * as exec from '@actions/exec'; import * as exec from '@actions/exec';
export interface PackageManagerInfo { export interface PackageManagerInfo {