run format

This commit is contained in:
Dmitry Shibanov 2023-07-10 13:05:16 +02:00
parent 36d77bfde2
commit 11883e881f

View File

@ -26,8 +26,10 @@ export async function run() {
const cachePackages = async (packageManager: string) => {
const state = core.getState(State.CacheMatchedKey);
const primaryKey = core.getState(State.CachePrimaryKey);
let cachePaths = JSON.parse(core.getState(State.CachePaths) || '[]') as string[];
cachePaths = cachePaths.filter(fs.existsSync)
let cachePaths = JSON.parse(
core.getState(State.CachePaths) || '[]'
) as string[];
cachePaths = cachePaths.filter(fs.existsSync);
const packageManagerInfo = await getPackageManagerInfo(packageManager);
if (!packageManagerInfo) {