File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ jobs:
176176 set -x
177177
178178 if [[ "${{ steps.test-installation.outcome }}" == "success" ]]; then
179- echo "error: The action should have failed because both python-version and python-version-file were not given"
179+ echo "error: The action should have failed because both python-version and python-version-file were not given but it has suceeded. "
180180 exit 1
181181 else
182182 echo "success: The action successfully failed because both python-version and python-version-file were not given"
Original file line number Diff line number Diff line change @@ -11,4 +11,9 @@ if [[ -z "${desired_python_version}" && -f "${specified_version_file}" ]]; then
1111 desired_python_version=$( cat " ${specified_version_file} " )
1212fi
1313
14+ if [[ -z " ${desired_python_version} " ]]; then
15+ echo " ❌ error: Both inputs .python-version and .python-version-file are not given. Kindly provide one of them." >&2
16+ exit 1
17+ fi
18+
1419echo " ${desired_python_version} "
You can’t perform that action at this time.
0 commit comments