Commit cbe32aee authored by flowolf's avatar flowolf Committed by Florian Klien

Fix explanation for rule

fixed explanation and also changed CI_COMMIT_MESSAGE to CI_COMMIT_TITLE
for clarity.
parent e84ed114
......@@ -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