From 8ecc1c8594594646818beba5e5ad06b89245ce78 Mon Sep 17 00:00:00 2001 From: Omar Diab Date: Sun, 11 Sep 2022 20:22:15 +0900 Subject: [PATCH] update behavior --- action/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/action/index.js b/action/index.js index 889a7f8a..66fc4c92 100644 --- a/action/index.js +++ b/action/index.js @@ -20,7 +20,6 @@ async function main() { const importMap = core.getInput("import-map", {}); const include = core.getInput("include", {}); const exclude = core.getInput("exclude", {}); - console.log({include, exclude, inclueParsed: include?.split(",").map(v => normalize(v)), excludeParsed: exclude?.split(",").map(v => normalize(v))}) const cwd = resolve(process.cwd(), core.getInput("root", {})); if (github.context.eventName === "pull_request") { @@ -76,8 +75,8 @@ async function main() { core.debug(`Discovering assets in "${cwd}"`); const assets = new Map(); const entries = await walk(cwd, cwd, assets, { - include, - exclude, + include: include ? include.split(",").map(pattern => normalize(pattern)): undefined, + exclude: exclude ? exclude.split(",").map(pattern => normalize(pattern)): undefined, }); core.debug(`Discovered ${assets.size} assets`);