File tree 1 file changed +17
-1
lines changed
1 file changed +17
-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_ver :
15
+ description : " Version of the Python binary to use; Optional, defaults to the current branch name"
16
+ required : false
17
+ type : string
14
18
secrets :
15
19
TX_TOKEN :
16
20
description : " Token required for interacting with Transifex API"
49
53
ref : ${{ env.PYDOC_VERSION }}
50
54
path : ${{ env.LANGUAGE_DIR }}
51
55
56
+ - name : Set Python version to use
57
+ id : pyver
58
+ shell : bash
59
+ run : |
60
+ if [[ "${{ inputs.py_bin_ver }}" != '' ]]
61
+ pyver=${{ inputs.py_bin_ver }}
62
+ else
63
+ pyver=$PYDOC_VERSION
64
+ fi
65
+ echo "PYVER=$pyver" >> $GITHUB_OUTPUT
66
+ echo "PYVER=$pyver"
67
+
52
68
- uses : actions/setup-python@v5
53
69
with :
54
- python-version : ${{ inputs.version }}
70
+ python-version : ${{ env.PYVER }}
55
71
allow-prereleases : true
56
72
cache : ' pip'
57
73
cache-dependency-path : |
You can’t perform that action at this time.
0 commit comments