mirror of
https://github.com/actions/checkout.git
synced 2026-11-16 22:45:08 +08:00
Include LFS support for submodules on persistant workers
This commit is contained in:
parent
579920382a
commit
db576685b9
2 changed files with 14 additions and 0 deletions
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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue