Skip to content

Commit

Permalink
Fix version deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Oct 2, 2023
1 parent 7e5576f commit 74d0f12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ val props = Properties()
props.load(StringReader(file("../gradle.properties").text))

var projectVersion = System.getenv("FORCED_VERSION")
?.replaceFirst("^refs/tags/", "")
?.replaceFirst("^v", "")
?.replaceFirst("^w", "")
?.replaceFirst("^z", "")
?.replaceFirst(Regex("^refs/tags/"), "")
?.replaceFirst(Regex("^v"), "")
?.replaceFirst(Regex("^w"), "")
?.replaceFirst(Regex("^z"), "")
?: props.getProperty("version")

if (projectVersion.contains("-only-gradle-plugin-")) {
Expand Down

0 comments on commit 74d0f12

Please sign in to comment.