Skip to content

Commit 6cc8c3c

Browse files
authored
Quote $PYTHON_BIN in deprecated composite action (#646)
This applies #587 to the deprecated composite action. Fixes the deprecated composite action for hosts where Python is installed in paths containing spaces, Windows is most likely affected.
1 parent 11089df commit 6cc8c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composite/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ runs:
182182
echo "Python that creates venv: $PYTHON_BIN"
183183
echo "PYTHON_BIN=$PYTHON_BIN" >> "$GITHUB_ENV"
184184
185-
PYTHON_VERSION="$($PYTHON_BIN -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
185+
PYTHON_VERSION="$("$PYTHON_BIN" -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
186186
if [[ "$PYTHON_VERSION" == "3.7" ]]; then
187187
echo "DEPENDENCIES_VERSION=3.7" >> "$GITHUB_ENV"
188188
elif [[ "$PYTHON_VERSION" == "3.8" ]]; then

0 commit comments

Comments
 (0)