Skip to content

Commit a387c7a

Browse files
authored
Update discord_webhook_ci.yml
1 parent d806a08 commit a387c7a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/discord_webhook_ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ jobs:
2424
- name: Replace newlines and convert to JSON
2525
run: |
2626
# Get the PR body and replace newlines with \n
27-
BODY=$(echo "${{ github.event.pull_request.body }}" | sed ':a;N;$!ba;s/\n/\\n/g')
2827
2928
# Convert the modified body to JSON and set it as an environment variable
30-
MODIFIED_BODY_TO_JSON=${{ toJson(BODY) }}
29+
MODIFIED_BODY_TO_JSON=${{ toJson(github.event.pull_request.body) }}
3130
echo "MODIFIED_BODY_TO_JSON=$MODIFIED_BODY_TO_JSON" >> $GITHUB_ENV
3231
3332

0 commit comments

Comments
 (0)