File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1111 description : " Name of the Transifex translation project"
1212 required : true
1313 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
1418 secrets :
1519 TX_TOKEN :
1620 description : " Token required for interacting with Transifex API"
@@ -48,10 +52,19 @@ jobs:
4852 with :
4953 ref : ${{ env.PYDOC_VERSION }}
5054 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
5164
5265 - uses : actions/setup-python@v5
5366 with :
54- python-version : ${{ inputs.version }}
67+ python-version : ${{ env.PYTHON_BINARY_VERSION }}
5568 allow-prereleases : true
5669 cache : ' pip'
5770 cache-dependency-path : |
You can’t perform that action at this time.
0 commit comments