Skip to content

Commit

Permalink
updated workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
ersilia-bot committed Apr 9, 2024
1 parent c22bf3b commit ba7c7ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/upload-model-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@ jobs:
result=$(jq '.[0].output.outcome[] | select(. != null)' output.json | wc -l)
echo "Expected correct outcomes $expected"
echo "Returned correct outcomes $result"
if [ $result -le $expected ]
if ! ([ $result -gt 0 ] && [ $result -le $expected ])
then
: # Do nothing as this is what we want
else
echo "Error in model output, aborting build and push"
exit 1
fi
Expand Down

0 comments on commit ba7c7ea

Please sign in to comment.