From a00545fae40d398078f1b82cbcbe4dbf68e61263 Mon Sep 17 00:00:00 2001 From: Kevin Cui Date: Thu, 22 Feb 2024 20:56:37 +0800 Subject: [PATCH] chore(action): add ci Signed-off-by: Kevin Cui --- .github/workflows/test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cfb7c71..4d4f8da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,7 +39,7 @@ jobs: const result = []; let match; while ((match = TASK_REGEXP.exec(text) !== null) { - result.push(match[1]) + result.push(match[1]); } return { @@ -49,7 +49,7 @@ jobs: } if (context.payload.action !== "edited") { - console.log("not edited event") + console.log("not edited event"); const { matrix, need_to_run } = getTask(process.env.RAW_BODY); core.setOutput("matrix", matrix); core.setOutput("need_to_run", need_to_run); @@ -90,14 +90,14 @@ jobs: const sortLatest = latestTasks.matrix.sort(); const sortPrevious = previousTasks.matrix.sort(); - for (const [index, task] of sortPrevious.entries())) { + for (const [index, task] of sortPrevious.entries()) { if (sortLatest[index] === undefined) { - console.log("latest task is less than previous, skip") + console.log("latest task is less than previous, skip"); continue; } if (task !== sortLatest[index]) { - console.log(`has added ${task}, need to run`) + console.log(`has added ${task}, need to run`); const { matrix, need_to_run } = latestTasks; core.setOutput("matrix", matrix); core.setOutput("need_to_run", need_to_run); @@ -105,7 +105,7 @@ jobs: } } - console.log("no new task added, skip") + console.log("no new task added, skip"); core.setOutput("matrix", []); core.setOutput("need_to_run", false);