mirror of
https://github.com/giraffate/clippy-action.git
synced 2024-11-21 15:39:32 +01:00
Update
This commit is contained in:
parent
1f0058d770
commit
81bd8d7be4
1 changed files with 2 additions and 5 deletions
|
@ -13,7 +13,7 @@ async function run(): Promise<void> {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const reviewdogVersion = core.getInput("reviewdog_version") || "latest";
|
const reviewdogVersion = core.getInput("reviewdog_version") || "latest";
|
||||||
const toolName = core.getInput("tool_name") || "golangci";
|
const toolName = core.getInput("tool_name") || "clippy";
|
||||||
const level = core.getInput("level") || "error";
|
const level = core.getInput("level") || "error";
|
||||||
const reporter = core.getInput("reporter") || "github-pr-check";
|
const reporter = core.getInput("reporter") || "github-pr-check";
|
||||||
const filterMode = core.getInput("filter_mode") || "added";
|
const filterMode = core.getInput("filter_mode") || "added";
|
||||||
|
@ -22,10 +22,6 @@ async function run(): Promise<void> {
|
||||||
const workdir = core.getInput("workdir") || ".";
|
const workdir = core.getInput("workdir") || ".";
|
||||||
const cwd = path.relative(process.env["GITHUB_WORKSPACE"] || process.cwd(), workdir);
|
const cwd = path.relative(process.env["GITHUB_WORKSPACE"] || process.cwd(), workdir);
|
||||||
|
|
||||||
await core.group("Installing Rust ...", async () => {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
const reviewdog = await core.group(
|
const reviewdog = await core.group(
|
||||||
"🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog",
|
"🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog",
|
||||||
async () => {
|
async () => {
|
||||||
|
@ -42,6 +38,7 @@ async function run(): Promise<void> {
|
||||||
ignoreReturnCode: true,
|
ignoreReturnCode: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
core.info(`debug: ${output.stdout}`);
|
||||||
|
|
||||||
process.env["REVIEWDOG_GITHUB_API_TOKEN"] = core.getInput("github_token");
|
process.env["REVIEWDOG_GITHUB_API_TOKEN"] = core.getInput("github_token");
|
||||||
return await exec.exec(
|
return await exec.exec(
|
||||||
|
|
Loading…
Reference in a new issue