From 41333333908233fa895c5bd2b80c4cff8dbb408c Mon Sep 17 00:00:00 2001 From: John Wright Date: Thu, 2 Jul 2026 13:48:56 +0100 Subject: [PATCH] fix: install python when it doesn't exist --- action.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/action.yml b/action.yml index c9612d5..b43619b 100644 --- a/action.yml +++ b/action.yml @@ -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