Skip to content

Commit

Permalink
chore: multiline result match
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Apr 3, 2024
1 parent bc844e7 commit 6e313fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
output=$(yarn --cwd ${{ github.action_path }} start --issue "${{ inputs.issue_url }}")
echo "Output of calculations:"
echo "$output"
rewards=$(echo $output | grep -oP "^{.*}$")
rewards=$(echo $output | pcregrep -M "^{[\s\S]*?}$")
echo "Pushing results to REWARDS output"
echo "REWARDS=$rewards" >> $GITHUB_OUTPUT
id: main
Expand Down

0 comments on commit 6e313fa

Please sign in to comment.