feat: restrict version to tag

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

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)