3
0
Fork 0
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:
Tonye Jack 2023-05-25 15:53:58 -06:00 committed by GitHub
parent 024242fc77
commit 9fdfe4cf16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 6 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View file

@ -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) {