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

Commit83d3dc1

Browse files
authored
Allow setting python binary version in check.yml
1 parentf1b5c83 commit83d3dc1

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

‎.github/workflows/check.yml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
description:"Name of the Transifex translation project"
1414
required:true
1515
type:string
16+
py_bin_ver:
17+
description:"Version of the Python binary to use; Optional, defaults to the current branch name"
18+
required:false
19+
type:string
1620
workflow_call:
1721
inputs:
1822
version:
@@ -23,6 +27,10 @@ on:
2327
description:"Name of the Transifex translation project"
2428
required:true
2529
type:string
30+
py_bin_ver:
31+
description:"Version of the Python binary to use; Optional, defaults to the current branch name"
32+
required:false
33+
type:string
2634
secrets:
2735
TELEGRAM_TOKEN:
2836
description:"Token required for interacting with Telegram API"
@@ -51,10 +59,21 @@ jobs:
5159
with:
5260
fetch-depth:5
5361

54-
-name:Set up Python 3
55-
uses:actions/setup-python@v5
62+
-name:Set Python version to use
63+
id:pyver
64+
shell:bash
65+
run:|
66+
if [[ "${{ inputs.py_bin_ver }}" != '' ]]
67+
pyver=${{ inputs.py_bin_ver }}
68+
else
69+
pyver=$PYDOC_VERSION
70+
fi
71+
echo "PYVER=$pyver" >> $GITHUB_OUTPUT
72+
echo "PYVER=$pyver"
73+
74+
-uses:actions/setup-python@v5
5675
with:
57-
python-version:${{inputs.version }}
76+
python-version:${{env.PYVER }}
5877
cache:pip
5978
allow-prereleases:true
6079

@@ -117,10 +136,21 @@ jobs:
117136
with:
118137
fetch-depth:5
119138

120-
-name:Set up Python 3
121-
uses:actions/setup-python@v5
139+
-name:Set Python version to use
140+
id:pyver
141+
shell:bash
142+
run:|
143+
if [[ "${{ inputs.py_bin_ver }}" != '' ]]
144+
pyver=${{ inputs.py_bin_ver }}
145+
else
146+
pyver=$PYDOC_VERSION
147+
fi
148+
echo "PYVER=$pyver" >> $GITHUB_OUTPUT
149+
echo "PYVER=$pyver"
150+
151+
-uses:actions/setup-python@v5
122152
with:
123-
python-version:${{inputs.version }}
153+
python-version:${{env.PYVER }}
124154
cache:pip
125155
allow-prereleases:true
126156

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp