fix: correct comparison call

This commit is contained in:
Tomasz Pluskiewicz 2021-02-01 11:12:31 +01:00 committed by GitHub
parent 34ff0e619e
commit 666c617ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ async function run () {
core.warning(`Skipping min version check. ${version} is not valid SemVer`)
}
if (minVersionSemVer && versionSemVer && semver.lt(versionSemVer, minVersion)) {
if (minVersionSemVer && versionSemVer && semver.lt(versionSemVer, minVersionSemVer)) {
core.warning(`Version "${version}" is lower than minimum "${minVersion}"`)
return
}