From 4a299877d9e21f7d5d3ed860a4e8ba0bee74c226 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 9 Mar 2023 21:20:55 +0100 Subject: add repeat and cooldown options to action repeat: Specifies wether the condition needs to cycle through false to run agian cooldown: time in seconds the action won't run again after executing --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 4058db8..54e6566 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ but still inherit the globally set ones. An *If-This-Then-That* style set of *triggers* and *commands*. If all *triggers* are in a triggered state, the commands are executed. +If `repeat` is `False`, the evaluation must cycle through `False` to run again. +`cooldown` specifies the time in seconds the action will wait after running again, +even if conditions are met. +Both `repeat` and `cooldown` are optional and their defaults are `True` and `0`. ## Configuration @@ -75,6 +79,8 @@ conditional: `actions.yml` ```yaml send-hello: + repeat: False + cooldown: 30 trigger: - conditional: interval: 30 -- cgit v1.2.3