Created
February 24, 2016 21:01
-
-
Save tonybaloney/2c57218682c2ec7801a4 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
Rule: | |
--- | |
description: 'Ask the StackStorm team every week when the next version is coming out' | |
tags: [] | |
type: | |
ref: standard | |
parameters: | |
enabled: true | |
name: weekly_irritation | |
trigger: | |
ref: core.294ec463-8f02-49ce-b3b3-e465ee607bd9 | |
type: core.st2.IntervalTimer | |
parameters: | |
unit: weeks | |
delta: 1 | |
criteria: | |
action: | |
ref: troll.ask_team | |
pack: default | |
ref: default.weekly_irritation | |
Action Chain: | |
--- | |
vars: | |
team: "@manas @lakstorm @emedvedev" | |
chain: | |
- | |
name: "get_next_version" | |
ref: "core.local" | |
parameters: | |
cmd: pip show st2client | awk '!/Meta/ && /Version/' | awk '{print $2}' | tr '.' ' ' | awk '{$2+=1; printf "%i.%i", $1, $2}' | |
publish: | |
next_version: "{{ get_next_version.stdout }}" | |
on-success: ask_the_team | |
- | |
name: ask_the_team | |
description: Try and annoy the team.. | |
ref: "slack.post_message" | |
parameters: | |
message: "Hey {{team}}, when is {{next_version}} coming out?" | |
channel: "#community" | |
Rule: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment