add replace for string in yml

This commit is contained in:
Dmitry Shibanov 2023-08-23 16:52:21 +02:00
parent 42a255b033
commit b59f6670cd

View File

@ -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
}