Skip to content

Commit

Permalink
Fail CI if ERROR_LINES is non-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
erszcz committed Mar 15, 2023
1 parent 7612918 commit 30f7c8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/self-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: "Assess self check result"
run: |
ERROR_LINES=$(wc -l gradualize.log | awk '{print $1}')
if [ $ERROR_LINES -lt 100 ]; then
echo "ok, self reported errors are in check: $ERROR_LINES < 100"
if [ $ERROR_LINES -eq 0 ]; then
echo "ok, there are no self-check errors: $ERROR_LINES == 0"
exit 0
else
echo "we've regressed, failing the job: $ERROR_LINES >= 100"
echo "we've regressed, failing the job: $ERROR_LINES != 0"
exit 1
fi

0 comments on commit 30f7c8f

Please sign in to comment.