Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ outputs:
runs:
using: composite
steps:
- id: check-python
shell: bash
run: | # shell
if command -v python3 >/dev/null 2>&1 || command -v python >/dev/null 2>&1; then
echo "installed=true" >> "$GITHUB_OUTPUT"
else
echo "installed=false" >> "$GITHUB_OUTPUT"
fi

- if: steps.check-python.outputs.installed == 'false'
uses: actions/setup-python@v5
with:
python-version: '3.x'

- id: parser
shell: python
run: | # python
Expand Down
Loading