We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7919989 + be7627b commit 689c876Copy full SHA for 689c876
script.sh
@@ -101,14 +101,9 @@ if [[ "${INPUT_REPORTER}" == "github-pr-review" ]]; then
101
echo '::endgroup::'
102
fi
103
104
-# Throw error if an error occurred and fail_on_error is true
+# Throw error if an error occurred
105
# textlint exitcode: 0 success 1 lint error detect 2 fatal error
106
-# (not 0) AND (not 1) is error
107
-if [[ "${INPUT_FAIL_ON_ERROR}" == "true" \
108
- && (( "${textlint_exit_val}" != "0" \
109
- && "${textlint_exit_val}" != "1" ) \
110
- || "${reviewdog_exit_val}" != "0" ) \
111
- ]]; then
+if [[ "${textlint_exit_val}" == "2" ]] || [[ "${reviewdog_exit_val}" != "0" ]]; then
112
exit 1
113
114
0 commit comments