Commit 7e21e61f authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'flowolf-master-patch-03080' into 'master'

Fix explanation for rule

See merge request gitlab-org/gitlab!83298
parents 05ceec73 cbe32aee
......@@ -395,13 +395,13 @@ When no rules evaluate to true, the pipeline does not run.
```yaml
workflow:
rules:
- if: $CI_COMMIT_MESSAGE =~ /-draft$/
- if: $CI_COMMIT_TITLE =~ /-draft$/
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
```
In this example, pipelines run if the commit message does not have `-drafts` in it
In this example, pipelines run if the commit title (first line of the commit message) does not end with `-draft`
and the pipeline is for either:
- A merge request
......
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