We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e439e72 commit ebe8834Copy full SHA for ebe8834
1 file changed
action.yml
@@ -18,6 +18,20 @@ outputs:
18
runs:
19
using: composite
20
steps:
21
+ - id: check-python
22
+ shell: bash
23
+ run: | # shell
24
+ if command -v python3 >/dev/null 2>&1 || command -v python >/dev/null 2>&1; then
25
+ echo "installed=true" >> "$GITHUB_OUTPUT"
26
+ else
27
+ echo "installed=false" >> "$GITHUB_OUTPUT"
28
+ fi
29
+
30
+ - if: steps.check-python.outputs.installed == 'false'
31
+ uses: actions/setup-python@v5
32
+ with:
33
+ python-version: '3.x'
34
35
- id: parser
36
shell: python
37
run: | # python
0 commit comments