fix: bug with retrieving submodules (#1172)
This commit is contained in:
parent
024242fc77
commit
9fdfe4cf16
6
dist/index.js
generated
vendored
6
dist/index.js
generated
vendored
@ -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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -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…
x
Reference in New Issue
Block a user