Skip to content

Commit

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

8 changes: 2 additions & 6 deletions src/main.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 9fdfe4c

Please sign in to comment.