Skip to content

Commit

Permalink
chore: update output command
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Apr 3, 2024
1 parent 0893a23 commit ea3c37c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion src/parser/content-evaluator-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ea3c37c

Please sign in to comment.