Skip to content

Commit

Permalink
Fix version metadata printing.
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Jun 24, 2024
1 parent fe6ee7d commit 5488bfe
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,6 @@ if (ext.tag) {
}

project.version = ext.tag.substring("neoforge/v".length())
// Validate that the rest is a semver version
if (version ==~ /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/) {
if (System.getenv("GITHUB_ENV")) {
def envFile = new File(System.getenv("GITHUB_ENV"))
envFile.append("VERSION=${version}")
}
} else {
throw new GradleException("Invalid semver: $version")
}
} else {
// This essentially tries to implement delay expansion of the project version based on a value source to
// still support configuration caching.
Expand Down

0 comments on commit 5488bfe

Please sign in to comment.