Skip to content

Commit

Permalink
fix: add warning message when unable to list submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Jun 25, 2023
1 parent 4afe0ab commit d3472e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
{
Expand All @@ -220,6 +220,7 @@ export const submoduleExists = async ({
)

if (exitCode !== 0) {
core.warning(stderr || "Couldn't list submodules")
return false
}

Expand Down

0 comments on commit d3472e5

Please sign in to comment.