Skip to content

Commit eac7d36

Browse files
authored
Fix CI versioning
1 parent 2a9285a commit eac7d36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

LavalinkServer/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ String versionFromTag() {
8686
it.commit == grgit.head()
8787
}
8888

89-
def clean = grgit.status().clean //uncommitted changes? -> should be SNAPSHOT
89+
// Uncommitted changes? -> should be SNAPSHOT
90+
// Also watch out for false positives in the CI build
91+
def clean = grgit.status().clean && System.getenv('CI') == null
9092

9193
if (headTag && clean) {
9294
headTag.getName()

0 commit comments

Comments
 (0)