From c9d402453191a8c3684e7f1c94a07752d402aa4a Mon Sep 17 00:00:00 2001 From: Jayrgo <13069032+Jayrgo@users.noreply.github.com> Date: Sun, 9 Aug 2020 12:24:24 +0200 Subject: [PATCH] revert: "fix: Git tags empty" This reverts commit e56a8dc0ce4942508d4c09000f09690553565416. --- src/helpers/git.js | 2 +- src/version/git.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/git.js b/src/helpers/git.js index 930a0c2..de5c185 100644 --- a/src/helpers/git.js +++ b/src/helpers/git.js @@ -97,7 +97,7 @@ module.exports = new (class Git { * @return {Promise<>} */ pull = () => ( - this.exec(`pull ${core.getInput('git-pull-method')}`) + this.exec(`pull --unshallow ${core.getInput('git-pull-method')}`) ) /** diff --git a/src/version/git.js b/src/version/git.js index 0a0743c..b73cc38 100644 --- a/src/version/git.js +++ b/src/version/git.js @@ -13,7 +13,7 @@ module.exports = new (class Git extends BaseVersioning { gitSemverTags({ tagPrefix, }, (err, tags) => { - const currentVersion = tags.length > 0 ? tags.shift().replace(tagPrefix, '') : '0.1.0' + const currentVersion = tags.shift().replace(tagPrefix, '') // Get the new version this.newVersion = bumpVersion(