mirror of
https://github.com/giraffate/clippy-action.git
synced 2025-02-20 13:53:57 +01:00
Use stderr
This commit is contained in:
parent
e7f3a3f7b7
commit
8a1cae45a3
3 changed files with 3 additions and 7 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -170,8 +170,6 @@ function run() {
|
|||
cwd,
|
||||
ignoreReturnCode: true,
|
||||
});
|
||||
core.info(`debug stdout: ${output.stdout}`);
|
||||
core.info(`debug stderr: ${output.stderr}`);
|
||||
process.env["REVIEWDOG_GITHUB_API_TOKEN"] = core.getInput("github_token");
|
||||
return yield exec.exec(reviewdog, [
|
||||
"-f=clippy",
|
||||
|
@ -183,7 +181,7 @@ function run() {
|
|||
...parse(reviewdogFlags),
|
||||
], {
|
||||
cwd,
|
||||
input: Buffer.from(output.stdout, "utf-8"),
|
||||
input: Buffer.from(output.stderr, "utf-8"),
|
||||
ignoreReturnCode: true,
|
||||
});
|
||||
}));
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -38,8 +38,6 @@ async function run(): Promise<void> {
|
|||
ignoreReturnCode: true,
|
||||
}
|
||||
);
|
||||
core.info(`debug stdout: ${output.stdout}`);
|
||||
core.info(`debug stderr: ${output.stderr}`);
|
||||
|
||||
process.env["REVIEWDOG_GITHUB_API_TOKEN"] = core.getInput("github_token");
|
||||
return await exec.exec(
|
||||
|
@ -55,7 +53,7 @@ async function run(): Promise<void> {
|
|||
],
|
||||
{
|
||||
cwd,
|
||||
input: Buffer.from(output.stdout, "utf-8"),
|
||||
input: Buffer.from(output.stderr, "utf-8"),
|
||||
ignoreReturnCode: true,
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue