Skip to content
Snippets Groups Projects
Commit 0f65bf1d authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

gitlab-ci.yml: fix rules:if for build-docs job


There are two separate issues here:

- CI_BRANCH_NAME doesn't exist, we want CI_COMMIT_BRANCH instead.
- The rules engine doesn't handle quotes in the normal sense.
Quotes are only allowed on literals, not variable references.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent bd137324
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ build-docs: ...@@ -60,7 +60,7 @@ build-docs:
# Run this job in case the pipeline changes. # Run this job in case the pipeline changes.
- .ostc-ci/*.yml - .ostc-ci/*.yml
# Or when things land. # Or when things land.
- if: '$CI_BRANCH_NAME == "$CI_DEFAULT_BRANCH"' - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes: changes:
# React to changes to the docs directory. # React to changes to the docs directory.
- docs/**/* - docs/**/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment