Commit 29cf1500 authored by Marcel Amirault's avatar Marcel Amirault

Clarify what rules you can use in workflow

parent ed5e81a4
...@@ -175,13 +175,13 @@ is similar to [`rules:` defined in jobs](#rules). ...@@ -175,13 +175,13 @@ is similar to [`rules:` defined in jobs](#rules).
You can use the [`workflow:rules` templates](#workflowrules-templates) to import You can use the [`workflow:rules` templates](#workflowrules-templates) to import
a preconfigured `workflow: rules` entry. a preconfigured `workflow: rules` entry.
`workflow: rules` accepts these keywords: `workflow: rules` accepts some of the same keywords as [`rules`](#rules):
- [`if`](#rulesif): Check this rule to determine when to run a pipeline. - [`rules: if`](#rulesif).
- [`when`](#when): Specify what to do when the `if` rule evaluates to true. - [`rules: changes`](#ruleschanges).
- To run a pipeline, set to `always`. - [`rules: exists`](#rulesexists).
- To prevent pipelines from running, set to `never`. - [`when`](#when), can only be `always` or `never` when used with `workflow`.
- [`variables`](#workflowrulesvariables): If not defined, uses the [variables defined elsewhere](#variables). - [`variables`](#workflowrulesvariables).
When no rules evaluate to true, the pipeline does not run. When no rules evaluate to true, the pipeline does not run.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment