We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c070aa commit f53a39aCopy full SHA for f53a39a
.github/workflows/sync-readme-changelog.yml
@@ -39,6 +39,10 @@ jobs:
39
--header 'x-readme-version: v5.5.1' \
40
--data "$payload"
41
42
+ # Escape newlines for Slack payload
43
+ release_body_escaped=$(echo -n "$release_body" | sed ':a;N;$!ba;s/\n/\\n/g')
44
+ echo "release_body_escaped=$release_body_escaped" >> "$GITHUB_OUTPUT"
45
+
46
- name: Announce New Release in Slack
47
uses: slackapi/[email protected]
48
with:
@@ -62,7 +66,7 @@ jobs:
62
66
"type": "section",
63
67
"text": {
64
68
"type": "mrkdwn",
65
- "text": ":star: *What's New*:\n\n${{ github.event.release.body }}"
69
+ "text": ":star: *What's New*:\n\n${{ steps.update.outputs.release_body_escaped }}"
70
}
71
},
72
{
0 commit comments