@@ -6984,10 +6984,10 @@ class GitCommandManager {
69846984 return output.exitCode === 0;
69856985 });
69866986 }
6987- fetch(refSpec, fetchDepth) {
6987+ fetch(refSpec, fetchDepth, fetchTags ) {
69886988 return __awaiter(this, void 0, void 0, function* () {
69896989 const args = ['-c', 'protocol.version=2', 'fetch'];
6990- if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
6990+ if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !fetchTags ) {
69916991 args.push('--no-tags');
69926992 }
69936993 args.push('--prune', '--progress', '--no-recurse-submodules');
@@ -7065,8 +7065,8 @@ class GitCommandManager {
70657065 }
70667066 log1(format) {
70677067 return __awaiter(this, void 0, void 0, function* () {
7068- var args = format ? ['log', '-1', format] : ['log', '-1'];
7069- var silent = format ? false : true;
7068+ const args = format ? ['log', '-1', format] : ['log', '-1'];
7069+ const silent = format ? false : true;
70707070 const output = yield this.execGit(args, false, silent);
70717071 return output.stdout;
70727072 });
@@ -7438,7 +7438,7 @@ function getSource(settings) {
74387438 }
74397439 else {
74407440 const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
7441- yield git.fetch(refSpec, settings.fetchDepth);
7441+ yield git.fetch(refSpec, settings.fetchDepth, settings.fetchTags );
74427442 }
74437443 core.endGroup();
74447444 // Checkout info
@@ -17299,6 +17299,10 @@ function getInputs() {
1729917299 result.fetchDepth = 0;
1730017300 }
1730117301 core.debug(`fetch depth = ${result.fetchDepth}`);
17302+ // Fetch tags
17303+ result.fetchTags =
17304+ (core.getInput('fetch-tags') || 'false').toUpperCase() === 'TRUE';
17305+ core.debug(`fetch tags = ${result.fetchTags}`);
1730217306 // LFS
1730317307 result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE';
1730417308 core.debug(`lfs = ${result.lfs}`);
0 commit comments