mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 02:38:08 +00:00
pipelines: improve yaml validation
This commit is contained in:
parent
dbc9dea7a3
commit
01c77ee1fa
1 changed files with 3 additions and 4 deletions
|
@ -375,15 +375,14 @@ stages:
|
|||
# set fail as false
|
||||
fail=0
|
||||
ajv test -d "src/Jackett.Common/Definitions/*.yml" -s "src/Jackett.Common/Definitions/schema.json" --valid --all-errors -c ajv-formats
|
||||
testresult=$?
|
||||
if [ "$testresult" -ne 0 ]; then
|
||||
if [ "$?" -eq 1 ]; then
|
||||
fail=1
|
||||
fi
|
||||
if [ "$fail" -ne 0 ]; then
|
||||
if [ "$fail" -eq 1 ]; then
|
||||
echo "Validation Failed"
|
||||
exit 1
|
||||
fi
|
||||
echo "Validation Success"
|
||||
echo "Validation Successful"
|
||||
exit 0
|
||||
|
||||
- stage: UnitTestJackett
|
||||
|
|
Loading…
Add table
Reference in a new issue