Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2cdb95

Browse files
authored
Add inputs.py_bin to sync.yml
1 parent8ae5d51 commitc2cdb95

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

‎.github/workflows/sync.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
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:|

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp