Skip to content

Commit

Permalink
chore: fail GH action on script failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrery committed Sep 29, 2023
1 parent 7627c8a commit 27394da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script/make_utils/run_use_case_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,8 @@ echo "Failures: ${#failed_examples[@]} examples"
for example in "${failed_examples[@]}"; do
echo " - $example"
done

# Exit with a failure status if there are any failures
if [[ ${#failed_examples[@]} -gt 0 ]]; then
exit 1
fi

0 comments on commit 27394da

Please sign in to comment.