From 38fedd7cc684174c4e34edba79d15fd008c78d22 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Thu, 15 Jan 2026 16:15:45 -0500 Subject: [PATCH] Fix use-external-python in the action marian-code/python-lint-annotate@fd01666da6c13acf21bc0d81b9f40221a533f57f broke setting the Python version for the action. While use-external-python works in .github/workflows/test-python-install.yml, it does not work in the action itself. This is because custom action inputs cannot use true booleans, so the use-external-python input is a string type. This string then always gets interpreted as "true", so the "Setup python" condition always resolves to "false" due to negation. Use fromJSON to correctly convert the strings "true" and "false" to boolean types. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 746853d..5fd168c 100644 --- a/action.yml +++ b/action.yml @@ -86,7 +86,7 @@ runs: using: "composite" steps: - name: Setup python - if: ${{ ! inputs.use-external-python }} + if: ${{ ! fromJSON(inputs.use-external-python) }} uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }}