From 1963a4301889a30b62c8af69adfe4f241c1c438a Mon Sep 17 00:00:00 2001 From: yair-legit Date: Mon, 8 Apr 2024 19:57:52 +0300 Subject: [PATCH] add cache --- src/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.ts b/src/main.ts index 24b3c79d..8195137f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,6 +18,12 @@ async function run(): Promise { let command = `${executablePath} inspectcode -o=${outputPath} -a ${solutionPath} --build --verbosity=WARN` + const cachesHome = core.getInput('cachesHome'); + if (cachesHome !== '') + { + command += ` --caches-home=${cachesHome}`; + } + const exclude = core.getInput('exclude') ?? '' if (exclude !== '') { command += ` --exclude=${exclude}`