Skip to content

Commit

Permalink
[fix] PR body cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Oct 6, 2024
1 parent deda51e commit 5a9b412
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/Lark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ jobs:
id: PR_body
run: |
echo "${{ github.event.pull_request.body }}" | sed 's/"/\\"/g' > PR_body.txt
echo "PR_body=$(cat PR_body.txt)" >> $GITHUB_OUTPUT
body=$(cat PR_body.txt)
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "PR_body=$body" >> $GITHUB_OUTPUT
- name: PR opened
uses: foxundermoon/feishu-action@v2
Expand Down

0 comments on commit 5a9b412

Please sign in to comment.