Skip to content

Commit

Permalink
fix: bug with retrieving submodules (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed May 25, 2023
1 parent ecdfb9c commit 024242f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
9 changes: 6 additions & 3 deletions 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.

12 changes: 9 additions & 3 deletions src/main.ts
Expand Up @@ -54,9 +54,15 @@ 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 = await getSubmodulePath({
cwd: workingDirectory
})
const submodulePaths: string[] = []

if (hasSubmodule) {
submodulePaths.concat(
...(await getSubmodulePath({
cwd: workingDirectory
}))
)
}

if (isTag) {
gitExtraArgs = ['--prune', '--no-recurse-submodules']
Expand Down

0 comments on commit 024242f

Please sign in to comment.