Skip to content

Commit

Permalink
update behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
osdiab committed Sep 11, 2022
1 parent 5079fc6 commit 8ecc1c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down Expand Up @@ -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`);

Expand Down

0 comments on commit 8ecc1c8

Please sign in to comment.