Post file contents to Slack

Hello,

I want to add a Release Notes (ReleaseNotes.txt file placed it git root directory) to Slack channel at the end of the workflow.

Have added: Script Step
with
curl -X POST -H --silent --data-urlencode “payload={“text”: “$(cat ReleaseNotes.txt | sed “s/”/’/g”)”}" WEBHOOK_URL

Locally via Terminal all works great but fails here…

Thanks in advance!

Hi @a.gubarenko!

We would ecourage using the Slack step to do something like this, although the issue here might be as simple as you’d have to reference “WEBHOOK_URL” as “$WEBHOOK_URL” instead.

Hi @bitce!

Thank you, actually by replacing WEBHOOK_URL to actual url have solved the issue.