Changes requests

This commit is contained in:
Sergey Dolin 2023-05-22 10:58:01 +02:00
parent 5de08eab2b
commit 7406bf5e76
4 changed files with 137 additions and 44 deletions

View file

@ -1,6 +1,5 @@
import * as core from '@actions/core';
import * as cache from '@actions/cache';
import fs from 'fs';
import {State} from './constants';
import {getCacheDirectoriesPaths, getPackageManagerInfo} from './cache-utils';
@ -31,7 +30,7 @@ const cachePackages = async (packageManager: string) => {
return;
}
// TODO: core.getInput has a bug - it can return undefined despite its definition
// TODO: core.getInput has a bug - it can return undefined despite its definition (tests only?)
// export declare function getInput(name: string, options?: InputOptions): string;
const cacheDependencyPath = core.getInput('cache-dependency-path') || '';
const cachePaths = await getCacheDirectoriesPaths(