Skip to content

Commit 99a28f3

Browse files
test: JSON payload + literal-newline message
1 parent bb6f534 commit 99a28f3

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/weekly-release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
- name: "Send Message"
100100
uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0
101101
env:
102-
MESSAGE: ":test_tube: *TEST -- please ignore* :test_tube:\n\nVerifying that COSY_WEBHOOK_URL is configured for `lambda-runtime-init` after it was found empty. No release was affected. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Run>"
102+
MESSAGE: ':test_tube: *TEST -- please ignore* :test_tube:\n\nVerifying that COSY_WEBHOOK_URL is configured for `lambda-runtime-init` after it was found empty. No release was affected. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Run>'
103103
with:
104104
webhook: ${{ secrets.COSY_WEBHOOK_URL }}
105105
webhook-type: incoming-webhook
@@ -108,8 +108,11 @@ jobs:
108108
# outcome we cannot afford.
109109
errors: true
110110
payload: |
111-
blocks:
112-
- type: "section"
113-
text:
114-
type: "mrkdwn"
115-
text: "${{ env.MESSAGE }}"
111+
{
112+
"blocks": [
113+
{
114+
"type": "section",
115+
"text": { "type": "mrkdwn", "text": "${{ env.MESSAGE }}" }
116+
}
117+
]
118+
}

0 commit comments

Comments
 (0)