Skip to content

Commit

Permalink
Adjust CI/CD settings
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyWing committed Dec 7, 2020
1 parent 3eb8814 commit 1c3cfa0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/travisPostBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);
Expand Down

0 comments on commit 1c3cfa0

Please sign in to comment.