fix: add warning message when unable to list submodules (#1304)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
@@ -209,7 +209,7 @@ export const submoduleExists = async ({
|
||||
}: {
|
||||
cwd: string
|
||||
}): Promise<boolean> => {
|
||||
const {stdout, exitCode} = await exec.getExecOutput(
|
||||
const {stdout, exitCode, stderr} = await exec.getExecOutput(
|
||||
'git',
|
||||
['submodule', 'status'],
|
||||
{
|
||||
@@ -220,6 +220,7 @@ export const submoduleExists = async ({
|
||||
)
|
||||
|
||||
if (exitCode !== 0) {
|
||||
core.warning(stderr || "Couldn't list submodules")
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user