Skip to content

Commit

Permalink
Merge pull request #426 from SnowCait/fix/filter-mode-behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyoshicho authored Aug 7, 2024
2 parents 3d4a021 + ac01efb commit c5e0d2f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ if [[ "${INPUT_REPORTER}" == "github-pr-review" ]]; then
fi

# Throw error if an error occurred and fail_on_error is true
if [[ "${INPUT_FAIL_ON_ERROR}" == "true" \
&& ( "${textlint_exit_val}" != "0" \
|| "${reviewdog_exit_val}" != "0" ) \
# textlint exitcode: 0 success 1 lint error detect 2 fatal error
if [[ "${INPUT_FAIL_ON_ERROR}" == "true" \
&& (( "${textlint_exit_val}" != "0" \
|| "${textlint_exit_val}" != "1" ) \
|| "${reviewdog_exit_val}" != "0" ) \
]]; then
exit 1
fi
Expand Down

0 comments on commit c5e0d2f

Please sign in to comment.