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:
parent
ac59398561
commit
cbd040a114
3 changed files with 21 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue