mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 02:23:39 -05:00
Cleaner solution
This commit is contained in:
parent
dd84550d46
commit
c64c5c8d60
1 changed files with 6 additions and 5 deletions
|
@ -988,17 +988,18 @@ CallStatusAPI() {
|
|||
else
|
||||
# Failure
|
||||
MESSAGE="${FAIL_MSG}"
|
||||
|
||||
# make sure we honor DISABLE_ERRORS
|
||||
if [ "${DISABLE_ERRORS}" == "true" ]; then
|
||||
STATUS="success"
|
||||
fi
|
||||
fi
|
||||
|
||||
##########################################################
|
||||
# Check to see if were enabled for multi Status mesaages #
|
||||
##########################################################
|
||||
if [ "${MULTI_STATUS}" == "true" ] && [ -n "${GITHUB_TOKEN}" ] && [ -n "${GITHUB_REPOSITORY}" ]; then
|
||||
|
||||
# make sure we honor DISABLE_ERRORS
|
||||
if [ "${DISABLE_ERRORS}" == "true" ]; then
|
||||
STATUS="success"
|
||||
fi
|
||||
|
||||
##############################################
|
||||
# Call the status API to create status check #
|
||||
##############################################
|
||||
|
|
Loading…
Reference in a new issue