feat: restrict version to tag

This commit is contained in:
Tomasz Pluskiewicz authored and GitHub committed 2021-01-30 16:09:56 +01:00
1 parent ade8d2e19b
commit 96636b210d
3 files changed
+25

No files matched your search

+6
View File
@@ -48,6 +48,12 @@ async function run () {
if (!version) {
throw new Error(`No version identified${msg}`)
}
const minVersion = core.getInput('minVersion', { required: false })
if (version < minVersion) {
core.warning(`Version "${version}" is lower than minimum "${minVersion}"`)
return
}
core.warning(`Recognized "${version}"${msg}`)
core.setOutput('version', version)