print debug

This commit is contained in:
Maxim Lobanov 2021-03-16 12:38:40 +03:00
parent 4d5942db51
commit b091e7652f
3 changed files with 5 additions and 3 deletions

View file

@ -83,7 +83,7 @@ jobs:
Get-Content $xmlPath | ForEach-Object { Write-Host $_ }
$xml = Get-Content $xmlPath -Raw
if ($raw -notlike 'maven') {
if ($raw -notlike '*maven*') {
throw "settings.xml file is not overwritten"
}
@ -118,6 +118,8 @@ jobs:
run: |
$xmlPath = Join-Path $HOME ".m2" "settings.xml"
$content = Get-Content -Path $xmlPath -Raw
Write-Host $content
if ($content -ne "Fake_XML") {
throw "settings.xml file was overwritten but it should not be"
}