mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2025-09-09 06:34:03 +07:00
feat: restrict version to tag
This commit is contained in:

committed by
GitHub

parent
ade8d2e19b
commit
96636b210d
@ -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)
|
||||
|
Reference in New Issue
Block a user