File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 5
5
description : ' Version of python to be installed. Reads from .python-version if unset.'
6
6
python-version-file :
7
7
description : ' Version of python to be installed'
8
- default : " .python-version"
8
+ default : ' .python-version'
9
9
cache :
10
10
description : Used to specify whether caching is needed. Set to true, if you'd like to enable caching.
11
11
required : true
Original file line number Diff line number Diff line change @@ -5,10 +5,16 @@ set -euo pipefail
5
5
specified_version=" $1 "
6
6
specified_version_file=" $2 "
7
7
8
+ desired_python_version=" ${specified_version} "
9
+
10
+ if [ -f " ${specified_version_file} " ]; then
11
+ desired_python_version=$( cat " ${specified_version_file} " )
12
+ fi
13
+
8
14
# This versions map should be kept in sync with
9
15
# - https://www.python.org/downloads/
10
16
# - https://devguide.python.org/versions/
11
- case " ${specified_version } " in
17
+ case " ${desired_python_version } " in
12
18
" 3" )
13
19
echo " 3.12.0"
14
20
;;
You can’t perform that action at this time.
0 commit comments