From 38f74907e6fb99cf8a7e0987811222c9b12d7250 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Fri, 26 Mar 2021 17:10:16 +0000
Subject: [PATCH] .gitlab-ci.yml: Avoid migrating the CI pipelines to the
 flattened repo

If the pipelines are copied, we will run pipelines not intended for the
flattened repo (SHA will mismatch for example - and generally, it
wouldn't make any sense in another repository context).

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 758f277..3cc1248 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -74,7 +74,7 @@ deploy:
     - cd openharmony-readthedocs-aggregated
     - git checkout origin/main # only main for now - needs to match the rules
     - find . -maxdepth 1 -not -path ./.git -not -path . -exec rm -rf {} \;
-    - tar -c --dereference -C .. --exclude openharmony-readthedocs-aggregated --exclude ./.git . | tar -x
+    - tar -c --dereference -C .. --exclude openharmony-readthedocs-aggregated --exclude ./.git --exclude ./.gitlab-ci.yml . | tar -x
     # Commit and push back, if something changed.
     - |
       if [ -n "$(git status -s)" ]; then
-- 
GitLab