ci:移除 git clone命令中的 --depth=1 参数

移除了 .gitlab/workflows/.gitlab-ci.main.yml 文件中 git clone 命令的 --depth=1 参数。
这个修改可能会影响管道机器人的运行时间,尤其是对于 large_run 测试。
This commit is contained in:
gewuyou 2025-07-16 19:25:30 +08:00
parent 210aad575b
commit fa40833dfe

View File

@ -122,7 +122,7 @@ mirror-to-github:
- git config --global user.email "pipeline@${GITLAB_URL}"
- echo "🔄 正在 clone 当前 GitLab 仓库..."
- git clone --depth=1 --branch main https://oauth2:${PIPELINE_BOT_TOKEN}@${GITLAB_URL}/${CI_PROJECT_PATH}.git repo
- git clone --branch main https://oauth2:${PIPELINE_BOT_TOKEN}@${GITLAB_URL}/${CI_PROJECT_PATH}.git repo
- cd repo
- echo "🔗 添加 GitHub 远程地址..."