Skip to content

Commit 6cfc166

Browse files
authored
Merge pull request #32 from srz-zumix/feature/setup-python-optional
python-version optional
2 parents d8c3c79 + 514650e commit 6cfc166

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ inputs:
3939
description: 'working directory'
4040
default: ${{ github.workspace }}
4141
required: false
42+
python-version:
43+
description: 'setup-python python-version. if empty, skip setup-python.'
44+
default: '3.10'
45+
required: false
4246
github_token:
4347
description: 'github token for github filter'
4448
default: ${{ github.token }}
@@ -59,9 +63,10 @@ runs:
5963
- name: setup-python
6064
uses: actions/setup-python@v5
6165
with:
62-
python-version: ${{ env.PYTHON_VERSION || '3.10' }}
66+
python-version: ${{ inputs.python-version }}
6367
# cache: 'pip'
6468
# cache-dependency-path: ${{ github.action_path }}/requirements.txt
69+
if: inputs.python-version != ''
6570
- name: pip install
6671
env:
6772
INPUTS_REQUIREMENTS: ${{ inputs.requirements }}

0 commit comments

Comments
 (0)