Skip to content

Commit fd81e2e

Browse files
authored
Merge pull request codefresh-io#14 from olegs-codefresh/master
update docs for slack plugin
2 parents 3782c90 + d1b8264 commit fd81e2e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

stable/slack/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ steps:
1313

1414
...
1515

16-
publish_to_repo:
16+
SendToSlack:
17+
title: Sending message to slack
1718
image: codefresh/slack-message-sender
18-
19+
commands:
20+
- slack-message-sender send
21+
environment:
22+
- WEBHOOK_URL=${{SLACK_WEBHOOK_URL}}
23+
- SLACK_MESSAGE=${{CF_COMMIT_MESSAGE}}
1924
...
2025

2126
```
2227

2328
## Environment Variables
2429

2530
- **required** `WEBHOOK_URL` - Url to the channel. Slack official [docs](https://api.slack.com/incoming-webhooks)
31+
- **required** `SLACK_MESSAGE` - The message that will be sent
2632
- `DEBUG` - print verbose output

0 commit comments

Comments
 (0)