Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
29cf1500
Commit
29cf1500
authored
Nov 08, 2021
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify what rules you can use in workflow
parent
ed5e81a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/ci/yaml/index.md
doc/ci/yaml/index.md
+6
-6
No files found.
doc/ci/yaml/index.md
View file @
29cf1500
...
...
@@ -175,13 +175,13 @@ is similar to [`rules:` defined in jobs](#rules).
You can use the
[
`workflow:rules` templates
](
#workflowrules-templates
)
to import
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
.
-
[
`
when`
](
#when
)
: Specify what to do when the
`if`
rule evaluates to true
.
-
To run a pipeline, set to
`always`
.
-
To prevent pipelines from running, set to
`never
`
.
-
[
`variables`
](
#workflowrulesvariables
)
: If not defined, uses the
[
variables defined elsewhere
](
#variables
)
.
-
[
`
rules: if`
](
#rulesif
)
.
-
[
`
rules: changes`
](
#ruleschanges
)
.
-
[
`rules: exists`
](
#rulesexists
)
.
-
[
`when`
](
#when
)
, can only be
`always`
or
`never`
when used with
`workflow
`
.
-
[
`variables`
](
#workflowrulesvariables
)
.
When no rules evaluate to true, the pipeline does not run.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment