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

Commit8ce7a6b

Browse files
authored
Add inputs.py_bin to check.yml
1 parentc2cdb95 commit8ce7a6b

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

‎.github/workflows/check.yml

Lines changed: 28 additions & 2 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:
17+
description:"Python binary version to use (useful if not equal to the 'version' input)"
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:
31+
description:"Python binary version to use (useful if not equal to the 'version' input)"
32+
required:false
33+
type:string
2634
secrets:
2735
TELEGRAM_TOKEN:
2836
description:"Token required for interacting with Telegram API"
@@ -50,11 +58,20 @@ jobs:
5058
-uses:actions/checkout@v4
5159
with:
5260
fetch-depth:5
61+
62+
-name:Set python binary version to use
63+
run:|
64+
if [[ -n "${{ inputs.py_bin }}" ]]; then
65+
py_bin="${{ inputs.py_bin }}"
66+
else
67+
py_bin="${{ inputs.version }}"
68+
fi
69+
echo "PYTHON_BINARY_VERSION=$py_bin" >> $GITHUB_ENV
5370
5471
-name:Set up Python 3
5572
uses:actions/setup-python@v5
5673
with:
57-
python-version:${{inputs.version }}
74+
python-version:${{env.PYTHON_BINARY_VERSION }}
5875
cache:pip
5976
allow-prereleases:true
6077

@@ -116,11 +133,20 @@ jobs:
116133
-uses:actions/checkout@v4
117134
with:
118135
fetch-depth:5
136+
137+
-name:Set python binary version to use
138+
run:|
139+
if [[ -n "${{ inputs.py_bin }}" ]]; then
140+
py_bin="${{ inputs.py_bin }}"
141+
else
142+
py_bin="${{ inputs.version }}"
143+
fi
144+
echo "PYTHON_BINARY_VERSION=$py_bin" >> $GITHUB_ENV
119145
120146
-name:Set up Python 3
121147
uses:actions/setup-python@v5
122148
with:
123-
python-version:${{inputs.version }}
149+
python-version:${{env.PYTHON_BINARY_VERSION }}
124150
cache:pip
125151
allow-prereleases:true
126152

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp