fix: Git tags empty
parent
ca16f2de01
commit
e56a8dc0ce
|
@ -97,7 +97,7 @@ module.exports = new (class Git {
|
||||||
* @return {Promise<>}
|
* @return {Promise<>}
|
||||||
*/
|
*/
|
||||||
pull = () => (
|
pull = () => (
|
||||||
this.exec(`pull --unshallow ${core.getInput('git-pull-method')}`)
|
this.exec(`pull ${core.getInput('git-pull-method')}`)
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,7 @@ module.exports = new (class Git extends BaseVersioning {
|
||||||
gitSemverTags({
|
gitSemverTags({
|
||||||
tagPrefix,
|
tagPrefix,
|
||||||
}, (err, tags) => {
|
}, (err, tags) => {
|
||||||
const currentVersion = tags.shift().replace(tagPrefix, '')
|
const currentVersion = tags.length > 0 ? tags.shift().replace(tagPrefix, '') : '0.1.0'
|
||||||
|
|
||||||
// Get the new version
|
// Get the new version
|
||||||
this.newVersion = bumpVersion(
|
this.newVersion = bumpVersion(
|
||||||
|
|
Loading…
Reference in New Issue