Fix for composite actions not having INPUT_ vars

See: https://github.com/actions/runner/issues/665
This commit is contained in:
Phil Jay
2021-10-22 11:49:04 +11:00
parent f9aea6e594
commit a7121378a5
7 changed files with 19 additions and 12 deletions

View File

@@ -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'