From ea3c37c481c175174b20c512c5b757b7b465540a Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Wed, 3 Apr 2024 10:06:14 +0900 Subject: [PATCH] chore: update output command --- action.yml | 2 +- src/parser/content-evaluator-module.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index d9e3463b..50221470 100644 --- a/action.yml +++ b/action.yml @@ -15,7 +15,7 @@ runs: yarn --cwd ${{ github.action_path }} --production=true output=$(yarn --cwd ${{ github.action_path }} start --issue "${{ inputs.issue_url }}") echo "$output" - rewards=$(echo $output | | grep -oP "^{.*}$") + rewards=$(echo $output | grep -oP "^{.*}$") echo "REWARDS=$rewards" >> $GITHUB_OUTPUT id: main shell: bash diff --git a/src/parser/content-evaluator-module.ts b/src/parser/content-evaluator-module.ts index b845471e..e8146d0c 100644 --- a/src/parser/content-evaluator-module.ts +++ b/src/parser/content-evaluator-module.ts @@ -127,7 +127,8 @@ export class ContentEvaluatorModule implements Module { for (let j = 0; j < results[0].length; j++) { let sum = new Decimal(0); for (let i = 0; i < results.length; i++) { - sum = sum.plus(results[i][j]); + console.log("ROW", results[i]); + sum = sum.plus(results[i][j] || 0); } columnSums.push(sum); }