Skip to content

Commit

Permalink
Improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliczsh committed May 1, 2021
1 parent 501f644 commit 36417c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
required: false
default: '.js'
outputs:
result:
results:
description: 'The list of scan-keyword input in codebase'
runs:
using: 'node12'
Expand Down
9 changes: 1 addition & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8601,18 +8601,11 @@ try {
var msg;
msg = String('Found "' + res.matches[0] + '" ' + res.count
+ ' times in "' + result + '"');
console.log("msg");
console.log(msg);
console.log("scanResult");
console.log(scanResult);
scanResult = scanResult.concat('\n', msg);
console.log("scanResult");
console.log(scanResult);
}
});
console.log("RESULT");
console.log(scanResult);
core.setOutput("result", scanResult);
core.setOutput('results', scanResult);
} catch (error) {
core.setFailed(error.message);
}
Expand Down
9 changes: 1 addition & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,11 @@ try {
var msg;
msg = String('Found "' + res.matches[0] + '" ' + res.count
+ ' times in "' + result + '"');
console.log("msg");
console.log(msg);
console.log("scanResult");
console.log(scanResult);
scanResult = scanResult.concat('\n', msg);
console.log("scanResult");
console.log(scanResult);
}
});
console.log("RESULT");
console.log(scanResult);
core.setOutput("result", scanResult);
core.setOutput('results', scanResult);
} catch (error) {
core.setFailed(error.message);
}

0 comments on commit 36417c1

Please sign in to comment.