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

gitlab-ci.yml: do not check out origin/main


This puts the tree into detached mode, just follow whatever was
checked out (the default branch of the remote).

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent badc46e1
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,6 @@ deploy:
- !reference [.workspace, script]
# We are in the root of the git-repo workspace.
- git clone https://user:$OHOS_AGGREGATED_DOCS_TOKEN@git.ostc-eu.org/OSTC/infrastructure/openharmony-readthedocs-aggregated.git aggregated
- (cd aggregated && git checkout origin/main) # only main for now - needs to match the rules
- (cd aggregated && find . -maxdepth 1 -not -path ./.git -not -path . -exec rm -rf {} \;)
- tar -c --dereference -C docs --exclude --exclude ./.git --exclude ./.gitlab-ci.yml . | tar -x -C aggregated
# Commit and push back, if something changed.
......
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