Skip to content

Commit

Permalink
Avoid escaped quotes in Windows PowerShell action (#603)
Browse files Browse the repository at this point in the history
Fixes #602
  • Loading branch information
EnricoMi authored Jul 8, 2024
1 parent e444c4e commit 0e2e68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ runs:
Write-Output "Python that creates venv: $PYTHON_BIN"
"PYTHON_BIN=$PYTHON_BIN" | Out-File -FilePath $env:GITHUB_ENV -Append
$PYTHON_VERSION = Invoke-Expression -Command "& '$PYTHON_BIN' -c 'import sys; print(f""{sys.version_info.major}.{sys.version_info.minor}"")'"
$PYTHON_VERSION = Invoke-Expression -Command "& '$PYTHON_BIN' -c 'import sys; print(sys.version_info.major, sys.version_info.minor, sep=chr(46))'"
Write-Output "Python version: $PYTHON_VERSION"
if ( $PYTHON_VERSION -eq "3.7" ) {
Expand Down

0 comments on commit 0e2e68b

Please sign in to comment.