fix: Git tags empty

releases/v3
Jayrgo 2020-08-08 22:44:50 +02:00
parent ca16f2de01
commit e56a8dc0ce
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<>}
*/
pull = () => (
this.exec(`pull --unshallow ${core.getInput('git-pull-method')}`)
this.exec(`pull ${core.getInput('git-pull-method')}`)
)
/**

View File

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