I want to add a multi-line field to the slack message, but I’m having trouble with the format.
Only the first line of the Release Notes field is visible. Slack step and output is as follows:
- slack@3:
inputs:
- webhook_url: $SLACK_URL
- channel: '#app-releases'
- title: ''
- message: ''
- author_name: ''
- pretext: ''
- text: ''
- fields: |-
Release Notes|-Fix build issue
-Update app icon
App|${BITRISE_APP_TITLE}
Workflow|${BITRISE_TRIGGERED_WORKFLOW_ID}
Git Branch|${BITRISE_GIT_BRANCH}
Git Author|${GIT_CLONE_COMMIT_AUTHOR_NAME}
Git Commit|${GIT_CLONE_COMMIT_MESSAGE_SUBJECT}
Git Commit Hash|${GIT_CLONE_COMMIT_HASH:0:7}
So I tried with ‘\n’ as below but this method doesn’t seem to work either.
- slack@3:
inputs:
- webhook_url: $SLACK_URL
- channel: '#app-releases'
- title: ''
- message: ''
- author_name: ''
- pretext: ''
- text: ''
- fields: |-
Release Notes|-Fix build issue\n-Update app icon
App|${BITRISE_APP_TITLE}
Workflow|${BITRISE_TRIGGERED_WORKFLOW_ID}
Git Branch|${BITRISE_GIT_BRANCH}
Git Author|${GIT_CLONE_COMMIT_AUTHOR_NAME}
Git Commit|${GIT_CLONE_COMMIT_MESSAGE_SUBJECT}
Git Commit Hash|${GIT_CLONE_COMMIT_HASH:0:7}
I’ve read the links below but couldn’t find the solution. What method should I use for the correct format?