Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MORIMORI0317 committed Jan 24, 2023
1 parent a79ae5f commit 5316020
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,11 @@ if (allSemVer.isNotEmpty()) {
}
}

// if (compVer.none { toVersionOnly(it) == toVersionOnly(preDictPreVer) })
if (compVer.map { Semver(toVersionOnly(it)) }.distinct().none { it.isGreaterThanOrEqualTo(preDictPreVer) && it.isLowerThan(version) })
val compVo = compVer.map { Semver(toVersionOnly(it)) }.distinct()

if (compVo.any { it.isLowerThan(preDictPreVer) } && compVo.none { it.isGreaterThanOrEqualTo(preDictPreVer) && it.isLowerThan(version) })
throw Exception("Pre version does not exist/以前のバージョンが存在しません: $preDictPreVer")

} else {
println("First version")
}
Expand Down

0 comments on commit 5316020

Please sign in to comment.