We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d8c3c79 + 514650e commit 6cfc166Copy full SHA for 6cfc166
1 file changed
action.yml
@@ -39,6 +39,10 @@ inputs:
39
description: 'working directory'
40
default: ${{ github.workspace }}
41
required: false
42
+ python-version:
43
+ description: 'setup-python python-version. if empty, skip setup-python.'
44
+ default: '3.10'
45
+ required: false
46
github_token:
47
description: 'github token for github filter'
48
default: ${{ github.token }}
@@ -59,9 +63,10 @@ runs:
59
63
- name: setup-python
60
64
uses: actions/setup-python@v5
61
65
with:
62
- python-version: ${{ env.PYTHON_VERSION || '3.10' }}
66
+ python-version: ${{ inputs.python-version }}
67
# cache: 'pip'
68
# cache-dependency-path: ${{ github.action_path }}/requirements.txt
69
+ if: inputs.python-version != ''
70
- name: pip install
71
env:
72
INPUTS_REQUIREMENTS: ${{ inputs.requirements }}
0 commit comments