# Post file contents to Slack

**URL:** <https://discuss.bitrise.io/t/post-file-contents-to-slack/18484>\
**Category:** Question & Answer\
**Tags:** ios, slack\
**Created:** [October 28, 2021, 11:34am UTC](https://discuss.bitrise.io/t/post-file-contents-to-slack/18484 "2021-10-28T11:34:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.gubarenko](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@a.gubarenko](https://discuss.bitrise.io/u/a.gubarenko)\
**Post date:** [October 28, 2021, 11:34am UTC](https://discuss.bitrise.io/t/post-file-contents-to-slack/18484/1 "2021-10-28T11:34:09Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [November 22, 2021, 7:23am UTC](https://discuss.bitrise.io/t/post-file-contents-to-slack/18484/2 "2021-11-22T07:23:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![a.gubarenko](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@a.gubarenko](https://discuss.bitrise.io/u/a.gubarenko)\
**Post date:** [November 22, 2021, 8:19am UTC](https://discuss.bitrise.io/t/post-file-contents-to-slack/18484/3 "2021-11-22T08:19:00Z")

</div>

Hi @bitce!

Thank you, actually by replacing WEBHOOK\_URL to actual url have solved the issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [December 22, 2021, 8:19am UTC](https://discuss.bitrise.io/t/post-file-contents-to-slack/18484/4 "2021-12-22T08:19:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
