Skip to content

Commit

Permalink
Merge pull request #140 from SMoraisAnsys/fix/define-options-correctly
Browse files Browse the repository at this point in the history
fix: code errors in main.ts and main.js
  • Loading branch information
jdkato authored Nov 18, 2024
2 parents 72a0a95 + 7e0f07d commit 8b7efc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function run(actionInput) {
// Pipe to reviewdog ...
core.info('Calling reviewdog 🐶');
process.env['REVIEWDOG_GITHUB_API_TOKEN'] = core.getInput('token');
options = [
var options = [
'-f=rdjsonl',
`-name=vale`,
`-reporter=${core.getInput('reporter')}`,
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function run(actionInput: input.Input): Promise<void> {
core.info('Calling reviewdog 🐶');
process.env['REVIEWDOG_GITHUB_API_TOKEN'] = core.getInput('token');

options = [
var options = [
'-f=rdjsonl',
`-name=vale`,
`-reporter=${core.getInput('reporter')}`,
Expand All @@ -65,7 +65,7 @@ export async function run(actionInput: input.Input): Promise<void> {
options.push(`-fail-level=${should_fail_on_level}`);
options.push(`-level=${vale_code == 1 ? should_fail_on_level : 'info'}`);
}
return yield exec.exec(actionInput.reviewdogPath, options, {
return await exec.exec(actionInput.reviewdogPath, options, {
cwd,
input: Buffer.from(output.stdout, 'utf-8'),
ignoreReturnCode: true
Expand Down

0 comments on commit 8b7efc0

Please sign in to comment.