mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-29 13:34:51 +00:00
fix: bug with retrieving submodules (#1172)
This commit is contained in:
parent
024242fc77
commit
9fdfe4cf16
3 changed files with 2 additions and 6 deletions
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue