You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the current moment, it doesn't appear newlines are being respected when sending the alert to teams. We're preparing a changelog which is then being passed into the text input. If the changelog is multiline, text: parses it as single-line, i.e.,
Here's what I see:
A new version was just published: v1.4.1 🚀
Changelog: \n### Blah\n\n- blah: blah\n- blah: blah\n\n### Fixes\n ... \n
Tried escaping newlines in a previous step but no luck either.
notification_changelog="$(echo "$changelog" | sed -z 's/\n/\\n/g')"
Here's how I'm using the action:
- name: Announce release on msteams
uses: aliencube/[email protected]
with:
webhook_uri: ${{ secrets.MSTEAMS_WEBHOOK_RELEASES_URL }}
title: 'A new version was just published: ${{ steps.tag_version.outputs.new_tag }}
🚀'
summary: 'A new version was just published: ${{ steps.tag_version.outputs.new_tag }}
🚀'
text: |
Changelog:
${{ steps.prepare_notification_changelog.outputs.notification_changelog }}
Any help appreciated!
The text was updated successfully, but these errors were encountered:
vsayer
changed the title
Respect newlines in text field
Respect newlines in text input
Feb 14, 2024
I know this is nearly a year old, but I've been doing some work using this action and have discovered a few things as a result.
The "text:" section accepts simple markdown, so you can handle your newlines using that, and almost any other formatting you can think of.
At the current moment, it doesn't appear newlines are being respected when sending the alert to teams. We're preparing a changelog which is then being passed into the text input. If the changelog is multiline,
text:
parses it as single-line, i.e.,Here's what I see:
Tried escaping newlines in a previous step but no luck either.
notification_changelog="$(echo "$changelog" | sed -z 's/\n/\\n/g')"
Here's how I'm using the action:
Any help appreciated!
The text was updated successfully, but these errors were encountered: