Commit 337ea225 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'docs-fix-workflow-rule-example' into 'master'

Correct mistake in workflow:rules example documentation

See merge request gitlab-org/gitlab!41628
parents 633b0d5a 964b5e46
...@@ -322,7 +322,7 @@ pipelines and merge request pipelines don't run, as there's no rule allowing the ...@@ -322,7 +322,7 @@ pipelines and merge request pipelines don't run, as there's no rule allowing the
```yaml ```yaml
workflow: workflow:
rules: rules:
- if: $CI_COMMIT_REF_NAME =~ /-wip$/ - if: $CI_COMMIT_MESSAGE =~ /-wip$/
when: never when: never
- if: '$CI_PIPELINE_SOURCE == "push"' - if: '$CI_PIPELINE_SOURCE == "push"'
``` ```
......
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