mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-01 00:03:29 +00:00
ci(docs): Fix build doc error
This commit is contained in:
parent
7ce8b3dd4a
commit
5faf6282f0
@ -25,7 +25,13 @@ COPY . /app
|
||||
|
||||
# Make sure we have the latest version of the repository
|
||||
RUN if [ "$CI" = "true" ]; then \
|
||||
git fetch --prune --unshallow; \
|
||||
# Check if the repo is shallow before trying to unshallow it
|
||||
if git rev-parse --is-shallow-repository | grep -q 'true'; then \
|
||||
git fetch --prune --unshallow; \
|
||||
else \
|
||||
echo "Repository is already complete, skipping unshallow"; \
|
||||
git fetch --prune; \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
ARG NUM_VERSION=2
|
||||
|
Loading…
Reference in New Issue
Block a user