我正在测试在 GitLab Pages 上部署 Hexo 站点。我目前正在使用某人发布到 GitHub 的主题,因此themes我的 Hexo 项目的文件夹中有一个 Git 子模块,因此顶级.gitmodules文件如下所示:
[submodule "themes/Hacker"]
path = themes/Hacker
url = https://github.com/CodeDaraW/Hacker.git
Run Code Online (Sandbox Code Playgroud)
我正在使用 Hexo 文档推荐的 YAML 文件(针对当前 Node 进行更新)进行 CI 设置,并且 CI 作业似乎进展顺利,只是它随机决定跳过 Git 子模块设置:
Getting source from Git repository 00:01
$ eval "$CI_PRE_CLONE_SCRIPT"
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/jjeffrey/jjeffrey.gitlab.io/.git/
Created fresh repository.
Checking out 76f8757a as master...
Skipping Git submodules setup
Restoring cache 00:01
Checking cache for default...
FATAL: …Run Code Online (Sandbox Code Playgroud)