Trim python version when reading from file by FerranPares · Pull Request #628 · actions/setup-python (original) (raw)

Description:
Just adding a trim after reading the python version from .python-version file or similar, so even if that file contains a newline at the EOF, it will be properly parsed.

It seems that python version const may include the newline when parsing from a file and avoid matching it the proper python version to install afterwards.

Check list: