Skip to content

Commit

Permalink
fix: add warning message when unable to list submodules (#1304)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
jackton1 and actions-user committed Jun 25, 2023
1 parent 4afe0ab commit 2106eb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

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 2106eb4

Please sign in to comment.