commit
c290ab6488
|
@ -1,6 +1,7 @@
|
||||||
name: 'Conventional Changelog Action'
|
name: 'Conventional Changelog Action'
|
||||||
description: 'Bump version, tag commit and generates changelog with conventional commits.'
|
description: 'Bump version, tag commit and generates changelog with conventional commits.'
|
||||||
author: 'Tycho Bokdam'
|
author: 'Tycho Bokdam'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'lib/index.js'
|
main: 'lib/index.js'
|
||||||
|
|
|
@ -10,9 +10,7 @@ module.exports = class Git extends BaseVersioning {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const tagPrefix = core.getInput('tag-prefix')
|
const tagPrefix = core.getInput('tag-prefix')
|
||||||
|
|
||||||
gitSemverTags({
|
gitSemverTags({ tagPrefix, }, async (err, tags) => {
|
||||||
tagPrefix,
|
|
||||||
}, async(err, tags) => {
|
|
||||||
const currentVersion = tags.length > 0 ? tags.shift().replace(tagPrefix, '') : null
|
const currentVersion = tags.length > 0 ? tags.shift().replace(tagPrefix, '') : null
|
||||||
|
|
||||||
// Get the new version
|
// Get the new version
|
||||||
|
|
Loading…
Reference in New Issue