From b59f6670cd050ae8ee56430da019746771c10ecf Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Wed, 23 Aug 2023 16:52:21 +0200 Subject: [PATCH] add replace for string in yml --- .github/workflows/test-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 14835e99..9dbdc707 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -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 }