This commit is contained in:
Takayuki Nakata 2022-11-01 22:02:24 +09:00
parent 1f0058d770
commit 81bd8d7be4

View file

@ -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(