mirror of
https://gitea.com/actions/checkout.git
synced 2024-11-26 18:45:55 +01:00
Only clean submodules when clean is set to true
This commit is contained in:
parent
30cd0465ca
commit
dde2556f7a
1 changed files with 5 additions and 2 deletions
|
@ -177,8 +177,11 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
|
|
||||||
// Clean existing submodules
|
// Clean existing submodules
|
||||||
await git.submoduleReset(settings.nestedSubmodules)
|
if (settings.clean)
|
||||||
await git.submoduleClean(settings.nestedSubmodules)
|
{
|
||||||
|
await git.submoduleReset(settings.nestedSubmodules)
|
||||||
|
await git.submoduleClean(settings.nestedSubmodules)
|
||||||
|
}
|
||||||
|
|
||||||
// Checkout submodules
|
// Checkout submodules
|
||||||
core.startGroup('Fetching submodules')
|
core.startGroup('Fetching submodules')
|
||||||
|
|
Loading…
Reference in a new issue