File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ function zipGamemode() {
4444 */
4545function generateChangeLog ( cb ) {
4646 if ( process . env . TAGGED_RELEASE == 'true' ) {
47- const tag = getLastGitTag ( getLastGitTag ( ) ) ;
47+ const currentTag = getLastGitTag ( ) ;
48+ const tag = getLastGitTag ( currentTag ) ;
4849
4950 if ( ! tag ) {
5051 cb ( "Couldn't fetch the last Git tag" ) ;
@@ -56,9 +57,9 @@ function generateChangeLog(cb) {
5657 }
5758
5859 if ( changelog ) {
59- changelog = `# Version ${ tag } \nChanges since ${ tag } :\n${ changelog } `
60+ changelog = `# Version ${ currentTag } \nChanges since ${ tag } :\n${ changelog } `
6061 } else {
61- changelog = `# Version ${ tag } \nThere have been no changes since ${ tag } .`
62+ changelog = `# Version ${ currentTag } \nThere have been no changes since ${ tag } .`
6263 }
6364
6465 writeFileSync ( 'dest/changelog.md' , changelog ) ;
You can’t perform that action at this time.
0 commit comments