From bd13732432f6629d1c101a00c609e72dbfb3939d Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com> Date: Tue, 30 Mar 2021 23:23:43 +0200 Subject: [PATCH] gitlab-ci.yml: fix CI_COMMIT_BRANCH variable CI_BRANCH_NAME doesn't exist Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com> --- .ostc-ci/gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ostc-ci/gitlab-ci.yml b/.ostc-ci/gitlab-ci.yml index 875112ce..39e9667a 100644 --- a/.ostc-ci/gitlab-ci.yml +++ b/.ostc-ci/gitlab-ci.yml @@ -76,7 +76,7 @@ update-docs: trigger: OSTC/OHOS/docs rules: # Update the documentation when things land in the default branch. - - if: '$CI_BRANCH_NAME == $CI_DEFAULT_BRANCH' + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' changes: # React to changes to the docs directory. - docs/**/* -- GitLab