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

@@ -6,7 +6,7 @@ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# shellcheck source=shared.sh
source "${script_dir}/shared.sh"
increment="${INPUT_INCREMENT:-patch}"
increment="${increment:-patch}"
if [[ "${increment}" != 'patch' && "${increment}" != 'minor' && "${increment}" != 'major' ]] ; then
echo "🛑 Value of 'increment' is not valid, choose from 'major', 'minor', or 'patch'" 1>&2
input_errors='true'