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 3d4a021 + ac01efb commit c5e0d2fCopy full SHA for c5e0d2f
script.sh
@@ -88,9 +88,11 @@ if [[ "${INPUT_REPORTER}" == "github-pr-review" ]]; then
88
fi
89
90
# 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" ) \
+# textlint exitcode: 0 success 1 lint error detect 2 fatal error
+if [[ "${INPUT_FAIL_ON_ERROR}" == "true" \
+ && (( "${textlint_exit_val}" != "0" \
94
+ || "${textlint_exit_val}" != "1" ) \
95
+ || "${reviewdog_exit_val}" != "0" ) \
96
]]; then
97
exit 1
98
0 commit comments