function main(params) {
console.log("GitHub repository is at ", params.repository.url);
return {commits: params.commits};
}
<Minute> <Hour> <Day_of_the_Month> <Month_of_the_Year> <Day_of_the_Week>
или
<Minute> <Hour> <Day_of_the_Month> <Month_of_the_Year> <Day_of_the_Week> <Year>
packages:
SlackPackage:
dependencies:
slack-package-to-post-messages:
location: /whisk.system/slack
inputs:
username: $SLACK_USERNAME
url: $SLACK_URL
channel: $SLACK_CHANNEL
application:
name: AppToPostToSlack
packages:
SlackPackage:
actions:
post-to-slack:
inputs:
message: "Hello from WskDeploy!"
slack_package: slack-package-to-post-messages
triggers:
everyhour:
inputs:
cron: "0 */1 * * *"
Activation: post-to-slack (9909dd5229e84526bff9902a2cd860df)
[
"2017-09-12T23:05:17.17872899Z stdout: Hello from WskDeploy!",
"2017-09-12T23:05:17.549177677Z stdout: Posted message to slack"
]