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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user