Skip to content

Newline \n in latest release is ignored compared to previous one #490

@jprecuch

Description

@jprecuch

Previously I've send this variable to this slack action

            {
              "type": "rich_text_preformatted",
              "elements": [
                {
                  "type": "text",
                  "text": "${{ env.VERSION_SUMMARY_OUTPUT }}"
                }
              ]
            },

with variable containing:

anf-rp             2537.0.0-main.3  installed  deployed\nazure-monitor      installed        install\nazure-redis        6.0              installed\nazure-service-bus  1.0              installed\ncbs                2537.0.0-main.2  installed  deployed\ncvo                9.17.1           installed\ncvs-sde            2537.0.0-main.7  installed  deployed\nmanaged-identity   installed        install\nmoonstone          v0.2.56          installed  deployed\nnfsaas-azurite     v1.4.0           installed  deployed\nnrp-simulator      v0.19.0          installed  deployed\nrabbitmq           v1.19.0          installed  deployed\ntimescaledb        0.0.8            installed  deployed%

This made all \n newlines and hence everything was on newline after it.
After using latest slack-github-action this changed and is shown exactly like above (with the \n as text).
How to preserve the newlines with latest release? See attached files before/after

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions