Skip to content

Commit

Permalink
Fix for characters that need escaping (newlines and pipes)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericsimard committed Oct 23, 2024
1 parent d0e3502 commit 1947231
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
FOUND_COMMITS=$(echo "$swift_output" | jq -r '.found_commits')
BRANCH_NAME=$(echo "$swift_output" | jq -r '.branch_name')
ISSUE_TITLE=$(echo "$swift_output" | jq -r '.issue_title')
ISSUE_BODY=$(echo "$swift_output" | jq -r '.issue_body')
ISSUE_BODY=$(echo "$swift_output" | jq -r '.issue_body' | sed ':a;N;$!ba;s/\n/\\n/g' | sed 's/|/\\|/g')
echo "found_commits=$FOUND_COMMITS" >> $GITHUB_OUTPUT
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 1947231

Please sign in to comment.