Skip to content

Commit

Permalink
add replace for string in yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov committed Aug 23, 2023
1 parent 42a255b commit b59f667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
- name: Validate version
run: |
$pythonVersion = (python --version)
if ("Python ${{ matrix.python }}" -ne "$pythonVersion"){
if ("Python ${{ matrix.python }}".replace("==", "") -ne "$pythonVersion"){
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python }}"
exit 1
}
Expand Down

0 comments on commit b59f667

Please sign in to comment.