Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Newline not interpreted by args? #97

@melchoir55

Description

@melchoir55

We're having a weird issue where env vars are interpolating but we can't seem to get a newline character to work. We've tried both single and double character escapes:

      - name: Slack notification
        env:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
        uses: Ilshidur/[email protected]
        with:
          args: 'A merge to `App.dev` has occurred successfully. \\n
          Commit ID: {{GITHUB_SHA}} \\n'
      - name: Slack notification
        env:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
        uses: Ilshidur/[email protected]
        with:
          args: 'A merge to `App.dev` has occurred successfully. \n
          Commit ID: {{GITHUB_SHA}} \n'

For some reason the \n or \\n just show up directly in the message without being interpreted. Could you please offer some guidance here?
Also great job on the rest of your documentation. Very easy to understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions