File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: 'Setup python amazon linux'
22description : ' setup-python action for amazon linux self hosted runners'
33inputs :
44 python-version :
5- description : ' Version of python to be installed. Reads from . python-version if unset.'
5+ description : ' Version of python to be installed. Reads from python-version-file if unset.'
66 python-version-file :
77 description : ' Version of python to be installed'
88 default : ' .python-version'
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ specified_version="$1"
66specified_version_file=" $2 "
77
88desired_python_version=" ${specified_version} "
9- if [ -f " ${specified_version_file} " ]; then
9+
10+ if [[ -z " ${desired_python_version} " && -f " ${specified_version_file} " ]]; then
1011 desired_python_version=$( cat " ${specified_version_file} " )
1112fi
1213
You can’t perform that action at this time.
0 commit comments