diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index 5422eba..09c7eb3 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -25,7 +25,7 @@ jobs: id: code-review run: | # Get the diff - escaped_diff=$(cat ${{ steps.git-diff.outputs.raw-diff-path }} | jq -sRr @json) + escaped_diff=$(cat ${{ steps.git-diff.outputs.raw-diff-path }} | jq -sRr @json | sed -e 's/^"//' -e 's/"$//') echo $escaped_diff @@ -42,7 +42,7 @@ jobs: }, { "role": "user", - "content": "GIT DIFF:\n\n```\n'"$(cat ${{ steps.git-diff.outputs.raw-diff-path }})"'\n```\n" + "content": "GIT DIFF:\n\n```\n'$escaped_diff'\n```\n" } ] }')