Skip to content

Commit 54b251b

Browse files
committed
ci(release): fix validation result condition
1 parent e32eb95 commit 54b251b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,16 @@ jobs:
2727
Import-Module ./resources/JsonValidator.psm1
2828
$schemaPath = "./config/schema.json"
2929
$configPath = "./config/conf.example.json"
30+
31+
Write-Host "Testing config file: $configPath"
32+
Write-Host "Against schema file: $schemaPath"
33+
3034
$result = Test-JsonValid -JsonPath "$configPath" -SchemaPath "$schemaPath"
31-
if ($result -ne $true) {
35+
36+
Write-Host 'Validation result:'
37+
Write-Host $result
38+
39+
if ($result.IsValid -ne $true) {
3240
Write-Host "Config file does not pass schema validation: $($result.Message)"
3341
exit 1
3442
}

0 commit comments

Comments
 (0)