mirror of
https://github.com/actions/checkout.git
synced 2026-09-16 12:53:06 +00:00
Include LFS support for submodules on persistant workers
This commit is contained in:
parent
579920382a
commit
db576685b9
5
dist/index.js
vendored
5
dist/index.js
vendored
@ -41899,6 +41899,11 @@ async function getSource(settings) {
|
||||
await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
|
||||
await git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
|
||||
endGroup();
|
||||
if (settings.lfs) {
|
||||
startGroup('Checking out submodule LFS objects');
|
||||
await git.submoduleForeach('git lfs checkout', settings.nestedSubmodules);
|
||||
endGroup();
|
||||
}
|
||||
// Persist credentials
|
||||
if (settings.persistCredentials) {
|
||||
startGroup('Persisting credentials for submodules');
|
||||
|
||||
@ -294,6 +294,15 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
||||
)
|
||||
core.endGroup()
|
||||
|
||||
if (settings.lfs) {
|
||||
core.startGroup('Checking out submodule LFS objects')
|
||||
await git.submoduleForeach(
|
||||
'git lfs checkout',
|
||||
settings.nestedSubmodules
|
||||
)
|
||||
core.endGroup()
|
||||
}
|
||||
|
||||
// Persist credentials
|
||||
if (settings.persistCredentials) {
|
||||
core.startGroup('Persisting credentials for submodules')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user