From 672e0a19633c39c615565a988d6a8d4335011fc0 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Thu, 25 Mar 2021 15:27:50 +0000 Subject: [PATCH] .gitlab-ci.yml: Tweak to sync with the docs path in the repo workspace Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .gitlab-ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5fadd0..addcbbf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,11 +48,7 @@ reuse: --manifest-name "$OHOS_MANIFEST_NAME" --manifest-branch "$OHOS_MANIFEST_BRANCH" - time repo sync --no-clone-bundle - - test -d sources || ( - echo "assumption violated - expected the workspace to contain the sources directory" - && ls "$SCRATCH_DIR" - && exit 1 ) - - ( cd "$SCRATCH_DIR"/sources/"$OHOS_GIT_REPO_PATH" && git checkout "$CI_COMMIT_SHA" ) + - ( cd "$SCRATCH_DIR"/"$OHOS_GIT_REPO_PATH" && git checkout "$CI_COMMIT_SHA" ) script: &doc-workspace-do - SCRATCH_DIR="$(cat "$CI_PROJECT_DIR"/.scratch-dir-name)" - cd "$SCRATCH_DIR"/docs -- GitLab