mirror of
https://github.com/actions/setup-python.git
synced 2025-04-19 11:13:29 +00:00
add replace for string in yml
This commit is contained in:
parent
42a255b033
commit
b59f6670cd
2
.github/workflows/test-python.yml
vendored
2
.github/workflows/test-python.yml
vendored
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user