Skip to content

Commit

Permalink
trim leading and trailing quotes
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
  • Loading branch information
bacongobbler committed Apr 3, 2024
1 parent 3762aa5 commit 5d65591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
}
]
}')
Expand Down

0 comments on commit 5d65591

Please sign in to comment.