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(