mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 23:32:10 -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
|
else
|
||||||
# Failure
|
# Failure
|
||||||
MESSAGE="${FAIL_MSG}"
|
MESSAGE="${FAIL_MSG}"
|
||||||
|
|
||||||
# make sure we honor DISABLE_ERRORS
|
|
||||||
if [ "${DISABLE_ERRORS}" == "true" ]; then
|
|
||||||
STATUS="success"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
# Check to see if were enabled for multi Status mesaages #
|
# Check to see if were enabled for multi Status mesaages #
|
||||||
##########################################################
|
##########################################################
|
||||||
if [ "${MULTI_STATUS}" == "true" ] && [ -n "${GITHUB_TOKEN}" ] && [ -n "${GITHUB_REPOSITORY}" ]; then
|
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 #
|
# Call the status API to create status check #
|
||||||
##############################################
|
##############################################
|
||||||
|
|
Loading…
Reference in a new issue