#758·checkout

在使用 GitHub REST API 进行下载时,不支持输入 '子模块',需要使用标准设置

作者: kbegiedza创建于 2022年4月12日更新于 2026年9月22日

我使用标准托管运行程序和标准 actions/checkout@v3,但动作无法检出并拉取我的公共仓库子模块。当我执行管道时,我收到了以下错误消息:Error: Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git 2.18 or higher to the PATH.

奇怪的是,我使用的是 ubuntu-latest (20.04),并且 PATH 中没有 Git >= 2.18。

内容来源: actions/checkout