diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 629e591bc..88926e305 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,8 @@ jobs: steps: - name: Checkout current branch uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Cache uses: coursier/cache-action@v6 diff --git a/build.sbt b/build.sbt index 17b5b5c0c..153df9547 100644 --- a/build.sbt +++ b/build.sbt @@ -69,7 +69,13 @@ lazy val docs = .settings( mdocIn := (ThisBuild / baseDirectory).value / "modules" / "docs" / "src", mdocVariables := Map( - "VERSION" -> version.value, + "VERSION" -> (if (isSnapshot.value) + previousStableVersion.value.getOrElse( + throw new Exception( + "No previous version found from dynver" + ) + ) + else version.value), "SCALA_VERSION" -> scalaVersion.value ), isCE3 := true,