Created
October 10, 2017 20:45
-
-
Save pritidesai/9f2928860c28b3b1a44deddb73015b1f to your computer and use it in GitHub Desktop.
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
packages: | |
SlackPackage: | |
dependencies: | |
slack-package-to-post-messages: | |
location: /whisk.system/slack | |
inputs: | |
username: $SLACK_USERNAME | |
url: $SLACK_URL | |
channel: $SLACK_CHANNEL | |
actions: | |
post-to-slack: | |
function: actions/post-to-slack.js | |
runtime: nodejs:6 | |
inputs: | |
message: | |
type: string | |
description: message to post on slack | |
slack_package: | |
type: string | |
description: slack package name | |
triggers: | |
everyhour: | |
feed: /whisk.system/alarms/alarm | |
rules: | |
post-to-slack-every-hour: | |
action: post-to-slack | |
trigger: everyhour |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment