Skip to content

Commit 9941a70

Browse files
committed
wip: testing
1 parent e7ea113 commit 9941a70

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

forge/actions/discovery/src/main.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ async function run() {
77
const filters = core.getInput("filters", { required: false });
88

99
const args = ["-vv", "scan"];
10-
args.push(filtersToArgs(filters));
10+
args.concat(filtersToArgs(filters))
1111
args.push(path);
1212

1313
core.info(`Running forge ${args.join(" ")}`);
@@ -18,6 +18,9 @@ async function run() {
1818
stdout: (data) => {
1919
stdout += data.toString();
2020
},
21+
stderr: (data) => {
22+
console.log(data.toString());
23+
}
2124
};
2225

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

3841
const result = [];
39-
lines.forEach((line) => {
42+
for (const line of lines) {
4043
result.push("-f", line);
41-
});
44+
}
4245

4346
return result;
4447
}

0 commit comments

Comments
 (0)