Skip to content

Commit

Permalink
ci: fix escape special characters in Discord notification description
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao committed Jan 11, 2025
1 parent 21a393b commit 9b412dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pr-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
with:
token: ${{ secrets.BOT_PAT }}

- name: Format Description
run: |
DESCRIPTION="${{ env.DESCRIPTION }}"
DESCRIPTION="${DESCRIPTION//\"/\\\"}"
DESCRIPTION="${DESCRIPTION//$'\n'/\\\\n}"
echo "DESCRIPTION=$DESCRIPTION" >> $GITHUB_ENV
- name: Send PR Notification
uses: ./.github/actions/notification
with:
Expand Down

0 comments on commit 9b412dc

Please sign in to comment.