Created
November 3, 2016 02:01
-
-
Save kei-p/444b6fe403b6efdfadb13c93a525f06a to your computer and use it in GitHub Desktop.
slack_notify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
channel=$SLACK_CHANNEL | |
service_url=$SLACK_SERVICES | |
message="Hello World!!" | |
payload="{\"channel\": \"${channel}\", \"username\": \"slackman\", \"text\": \"${message}\", \"icon_emoji\": \":smile:\"}" | |
curl -X POST \ | |
-H 'Content-type: application/json' \ | |
--data "${payload}" \ | |
${service_url} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment