From 1c3cfa053f4abbd30969b4d0af74b0a5fc201fbf Mon Sep 17 00:00:00 2001 From: NotMyWing Date: Mon, 7 Dec 2020 20:48:57 +1100 Subject: [PATCH] Adjust CI/CD settings --- tools/travisPostBuild.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/travisPostBuild.js b/tools/travisPostBuild.js index 1c8be8a..9064e97 100644 --- a/tools/travisPostBuild.js +++ b/tools/travisPostBuild.js @@ -44,7 +44,8 @@ function zipGamemode() { */ function generateChangeLog(cb) { if (process.env.TAGGED_RELEASE == 'true') { - const tag = getLastGitTag(getLastGitTag()); + const currentTag = getLastGitTag(); + const tag = getLastGitTag(currentTag); if (!tag) { cb("Couldn't fetch the last Git tag"); @@ -56,9 +57,9 @@ function generateChangeLog(cb) { } if (changelog) { - changelog = `# Version ${tag}\nChanges since ${tag}:\n${changelog}` + changelog = `# Version ${currentTag}\nChanges since ${tag}:\n${changelog}` } else { - changelog = `# Version ${tag}\nThere have been no changes since ${tag}.` + changelog = `# Version ${currentTag}\nThere have been no changes since ${tag}.` } writeFileSync('dest/changelog.md', changelog);