fix: bug with retrieving submodules (#1172)
This commit is contained in:
@@ -54,14 +54,10 @@ export async function run(): Promise<void> {
|
||||
const hasSubmodule = await submoduleExists({cwd: workingDirectory})
|
||||
let gitExtraArgs = ['--no-tags', '--prune', '--recurse-submodules']
|
||||
const isTag = env.GITHUB_REF?.startsWith('refs/tags/')
|
||||
const submodulePaths: string[] = []
|
||||
let submodulePaths: string[] = []
|
||||
|
||||
if (hasSubmodule) {
|
||||
submodulePaths.concat(
|
||||
...(await getSubmodulePath({
|
||||
cwd: workingDirectory
|
||||
}))
|
||||
)
|
||||
submodulePaths = await getSubmodulePath({cwd: workingDirectory})
|
||||
}
|
||||
|
||||
if (isTag) {
|
||||
|
||||
Reference in New Issue
Block a user