mirror of
https://github.com/reecetech/version-increment.git
synced 2025-12-21 06:25:44 +00:00
Fix for composite actions not having INPUT_ vars
See: https://github.com/actions/runner/issues/665
This commit is contained in:
@@ -15,7 +15,7 @@ pcre_old_calver='^(?P<major>0|[1-9]\d*)-0{0,1}(?P<minor>0|[0-9]\d*)-R(?P<patch>0
|
||||
## Input validation
|
||||
|
||||
input_errors='false'
|
||||
scheme="${INPUT_SCHEME:-semver}"
|
||||
scheme="${scheme:-semver}"
|
||||
if [[ "${scheme}" != 'semver' && "${scheme}" != 'calver' ]] ; then
|
||||
echo "🛑 Value of 'scheme' is not valid, choose from 'semver' or 'calver'" 1>&2
|
||||
input_errors='true'
|
||||
|
||||
Reference in New Issue
Block a user