revert: "fix: Git tags empty"

This reverts commit e56a8dc0ce.
releases/v3
Jayrgo 2020-08-09 12:24:24 +02:00
parent e56a8dc0ce
commit c9d4024531
No known key found for this signature in database
GPG Key ID: 498EE77E1F8E0A1E
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ module.exports = new (class Git {
* @return {Promise<>} * @return {Promise<>}
*/ */
pull = () => ( pull = () => (
this.exec(`pull ${core.getInput('git-pull-method')}`) this.exec(`pull --unshallow ${core.getInput('git-pull-method')}`)
) )
/** /**

View File

@ -13,7 +13,7 @@ module.exports = new (class Git extends BaseVersioning {
gitSemverTags({ gitSemverTags({
tagPrefix, tagPrefix,
}, (err, tags) => { }, (err, tags) => {
const currentVersion = tags.length > 0 ? tags.shift().replace(tagPrefix, '') : '0.1.0' const currentVersion = tags.shift().replace(tagPrefix, '')
// Get the new version // Get the new version
this.newVersion = bumpVersion( this.newVersion = bumpVersion(