Skip to content

Conversation

@RytoEX
Copy link

@RytoEX RytoEX commented Jan 15, 2026

fd01666 (PR #16) 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.

To compare, see these before and after logs, paying special attention to the Python version in each job:

Please note that the action test will "fail" until #21 is merged because the macos-13 runners cannot initialize.

marian-code/python-lint-annotate@fd01666
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant