Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Aug 30, 2024
1 parent e7ea113 commit 9941a70
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions forge/actions/discovery/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function run() {
const filters = core.getInput("filters", { required: false });

const args = ["-vv", "scan"];
args.push(filtersToArgs(filters));
args.concat(filtersToArgs(filters))
args.push(path);

core.info(`Running forge ${args.join(" ")}`);
Expand All @@ -18,6 +18,9 @@ async function run() {
stdout: (data) => {
stdout += data.toString();
},
stderr: (data) => {
console.log(data.toString());
}
};

await exec.exec('forge', args, options);
Expand All @@ -36,9 +39,9 @@ function filtersToArgs(input) {
const lines = input.trim().split("\n");

const result = [];
lines.forEach((line) => {
for (const line of lines) {
result.push("-f", line);
});
}

return result;
}

0 comments on commit 9941a70

Please sign in to comment.