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

Commitf1b5c83

Browse files
authored
Support different versions for branch and binary
1 parenta4bb92c commitf1b5c83

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

‎.github/workflows/sync.yml

Lines changed: 17 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_ver:
15+
description:"Version of the Python binary to use; Optional, defaults to the current branch name"
16+
required:false
17+
type:string
1418
secrets:
1519
TX_TOKEN:
1620
description:"Token required for interacting with Transifex API"
@@ -49,9 +53,21 @@ jobs:
4953
ref:${{ env.PYDOC_VERSION }}
5054
path:${{ env.LANGUAGE_DIR }}
5155

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+
5268
-uses:actions/setup-python@v5
5369
with:
54-
python-version:${{inputs.version }}
70+
python-version:${{env.PYVER }}
5571
allow-prereleases:true
5672
cache:'pip'
5773
cache-dependency-path:|

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp