1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2024-12-23 12:36:00 +01:00
This commit is contained in:
Tatyana Kostromskaya 2023-09-05 14:24:23 +00:00
parent 72f2cec99f
commit 64ffef1ea6
3 changed files with 4 additions and 1 deletions

2
dist/index.js vendored
View file

@ -641,6 +641,7 @@ class GitCommandManager {
args.push('--no-tags'); args.push('--no-tags');
} }
args.push('--prune', '--no-recurse-submodules'); args.push('--prune', '--no-recurse-submodules');
console.log(`options show progress = ${options.showProgress}`);
if (options.showProgress) { if (options.showProgress) {
args.push('--progress'); args.push('--progress');
} }
@ -1746,6 +1747,7 @@ function getInputs() {
result.showProgress = result.showProgress =
(core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE'; (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE';
core.debug(`show progress = ${result.showProgress}`); core.debug(`show progress = ${result.showProgress}`);
console.log(`show progress = ${result.showProgress}`);
// LFS // LFS
result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE'; result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE';
core.debug(`lfs = ${result.lfs}`); core.debug(`lfs = ${result.lfs}`);

View file

@ -255,6 +255,7 @@ class GitCommandManager {
} }
args.push('--prune', '--no-recurse-submodules') args.push('--prune', '--no-recurse-submodules')
console.log(`options show progress = ${options.showProgress}`)
if (options.showProgress) { if (options.showProgress) {
args.push('--progress') args.push('--progress')
} }

View file

@ -109,7 +109,7 @@ export async function getInputs(): Promise<IGitSourceSettings> {
result.showProgress = result.showProgress =
(core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE' (core.getInput('show-progress') || 'true').toUpperCase() === 'TRUE'
core.debug(`show progress = ${result.showProgress}`) core.debug(`show progress = ${result.showProgress}`)
console.log(`show progress = ${result.showProgress}`)
// LFS // LFS
result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE' result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE'
core.debug(`lfs = ${result.lfs}`) core.debug(`lfs = ${result.lfs}`)