Skip to content
Snippets Groups Projects
Verified Commit 38f74907 authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

.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's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent f2a079be
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ deploy: ...@@ -74,7 +74,7 @@ deploy:
- cd openharmony-readthedocs-aggregated - cd openharmony-readthedocs-aggregated
- git checkout origin/main # only main for now - needs to match the rules - git checkout origin/main # only main for now - needs to match the rules
- find . -maxdepth 1 -not -path ./.git -not -path . -exec rm -rf {} \; - 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. # Commit and push back, if something changed.
- | - |
if [ -n "$(git status -s)" ]; then if [ -n "$(git status -s)" ]; then
......
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