1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-05-04 09:19:55 +02:00

cleanup directory if the submodule is faulty

This commit is contained in:
SKi 2023-03-01 19:23:12 -08:00
parent ac59398561
commit cbd040a114
No known key found for this signature in database
3 changed files with 21 additions and 0 deletions

View file

@ -81,6 +81,11 @@ export async function prepareExistingDirectory(
}
core.endGroup()
// Check for submodules and delete any existing files if submodules are present
if (!(await git.submoduleStatus())){
remove = true
}
// Clean
if (clean) {
core.startGroup('Cleaning the repository')