Merge pull request #675 from dmerrick/honoring-disable-errors

Making MULTI_STATUS honor DISABLE_ERRORS setting
This commit is contained in:
Lukas Gravley 2020-09-04 09:15:06 -05:00 committed by GitHub
commit a3fcb3ea7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -994,6 +994,12 @@ CallStatusAPI() {
# 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 #
##############################################