Include LFS support for submodules on persistant workers

This commit is contained in:
Andrew Klotz 2026-09-14 11:17:45 -07:00
parent 579920382a
commit db576685b9
2 changed files with 14 additions and 0 deletions

5
dist/index.js vendored
View File

@ -41899,6 +41899,11 @@ async function getSource(settings) {
await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules); await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
await git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules); await git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
endGroup(); endGroup();
if (settings.lfs) {
startGroup('Checking out submodule LFS objects');
await git.submoduleForeach('git lfs checkout', settings.nestedSubmodules);
endGroup();
}
// Persist credentials // Persist credentials
if (settings.persistCredentials) { if (settings.persistCredentials) {
startGroup('Persisting credentials for submodules'); startGroup('Persisting credentials for submodules');

View File

@ -294,6 +294,15 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
) )
core.endGroup() core.endGroup()
if (settings.lfs) {
core.startGroup('Checking out submodule LFS objects')
await git.submoduleForeach(
'git lfs checkout',
settings.nestedSubmodules
)
core.endGroup()
}
// Persist credentials // Persist credentials
if (settings.persistCredentials) { if (settings.persistCredentials) {
core.startGroup('Persisting credentials for submodules') core.startGroup('Persisting credentials for submodules')