File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11
11
description : " Name of the Transifex translation project"
12
12
required : true
13
13
type : string
14
+ py_bin :
15
+ description : " Python binary version to use (useful if not equal to the 'version' input)"
16
+ required : false
17
+ type : string
14
18
secrets :
15
19
TX_TOKEN :
16
20
description : " Token required for interacting with Transifex API"
@@ -48,10 +52,19 @@ jobs:
48
52
with :
49
53
ref : ${{ env.PYDOC_VERSION }}
50
54
path : ${{ env.LANGUAGE_DIR }}
55
+
56
+ - name : Set python binary version to use
57
+ run : |
58
+ if [[ -n "${{ inputs.py_bin }}" ]]; then
59
+ py_bin="${{ inputs.py_bin }}"
60
+ else
61
+ py_bin="${{ inputs.version }}"
62
+ fi
63
+ echo "PYTHON_BINARY_VERSION=$py_bin" >> $GITHUB_ENV
51
64
52
65
- uses : actions/setup-python@v5
53
66
with :
54
- python-version : ${{ inputs.version }}
67
+ python-version : ${{ env.PYTHON_BINARY_VERSION }}
55
68
allow-prereleases : true
56
69
cache : ' pip'
57
70
cache-dependency-path : |
You can’t perform that action at this time.
0 commit comments