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 5 additions and 11 deletions

6
dist/index.js generated vendored
View File

@ -808,11 +808,9 @@ function run() {
const hasSubmodule = yield (0, utils_1.submoduleExists)({ cwd: workingDirectory });
let gitExtraArgs = ['--no-tags', '--prune', '--recurse-submodules'];
const isTag = (_a = env.GITHUB_REF) === null || _a === void 0 ? void 0 : _a.startsWith('refs/tags/');
const submodulePaths = [];
let submodulePaths = [];
if (hasSubmodule) {
submodulePaths.concat(...(yield (0, utils_1.getSubmodulePath)({
cwd: workingDirectory
})));
submodulePaths = yield (0, utils_1.getSubmodulePath)({ cwd: workingDirectory });
}
if (isTag) {
gitExtraArgs = ['--prune', '--no-recurse-submodules'];

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

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