Skip to content

Commit

Permalink
strip "v" from artifact version
Browse files Browse the repository at this point in the history
  • Loading branch information
killaitis committed Dec 14, 2023
1 parent f0c2394 commit 531e256
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ organizationHomepage := Some(url("http://www.github.com/killaitis/"))
name := "http4s-cloud-functions"
version := {
val Tag = "refs/tags/(.*)".r
sys.env.get("CI_VERSION").collect { case Tag(tag) => tag }
sys.env.get("CI_VERSION")
.collect { case Tag(tag) => tag.stripPrefix("v") }
.getOrElse("0.0.1-SNAPSHOT")
}

Expand Down

0 comments on commit 531e256

Please sign in to comment.