Skip to content

Instantly share code, notes, and snippets.

@pritidesai
Created October 10, 2017 20:45
Show Gist options
  • Save pritidesai/9f2928860c28b3b1a44deddb73015b1f to your computer and use it in GitHub Desktop.
Save pritidesai/9f2928860c28b3b1a44deddb73015b1f to your computer and use it in GitHub Desktop.
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