Skip to content

Commit c5e0d2f

Browse files
authored
Merge pull request #426 from SnowCait/fix/filter-mode-behavior
2 parents 3d4a021 + ac01efb commit c5e0d2f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

script.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ if [[ "${INPUT_REPORTER}" == "github-pr-review" ]]; then
8888
fi
8989

9090
# Throw error if an error occurred and fail_on_error is true
91-
if [[ "${INPUT_FAIL_ON_ERROR}" == "true" \
92-
&& ( "${textlint_exit_val}" != "0" \
93-
|| "${reviewdog_exit_val}" != "0" ) \
91+
# textlint exitcode: 0 success 1 lint error detect 2 fatal error
92+
if [[ "${INPUT_FAIL_ON_ERROR}" == "true" \
93+
&& (( "${textlint_exit_val}" != "0" \
94+
|| "${textlint_exit_val}" != "1" ) \
95+
|| "${reviewdog_exit_val}" != "0" ) \
9496
]]; then
9597
exit 1
9698
fi

0 commit comments

Comments
 (0)