Skip to content

Commit 1c3cfa0

Browse files
committed
Adjust CI/CD settings
1 parent 3eb8814 commit 1c3cfa0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/travisPostBuild.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ function zipGamemode() {
4444
*/
4545
function 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);

0 commit comments

Comments
 (0)