mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 20:52:12 -05:00
fixed langauge logic
This commit is contained in:
parent
4b6d5433f1
commit
7e89fa681c
1 changed files with 13 additions and 5 deletions
|
@ -830,7 +830,7 @@ CallStatusAPI() {
|
||||||
-H 'content-type: application/json' \
|
-H 'content-type: application/json' \
|
||||||
-d "{ \"state\": \"$STATUS\",
|
-d "{ \"state\": \"$STATUS\",
|
||||||
\"target_url\": \"https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID\",
|
\"target_url\": \"https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID\",
|
||||||
\"description\": \"$MESSAGE\", \"context\": \" --> Lint-Language/$LANGUAGE\"
|
\"description\": \"$MESSAGE\", \"context\": \"--> Linted: $LANGUAGE\"
|
||||||
}" 2>&1)
|
}" 2>&1)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
|
@ -892,10 +892,18 @@ Footer() {
|
||||||
CallStatusAPI "$LANGUAGE" "error"
|
CallStatusAPI "$LANGUAGE" "error"
|
||||||
else
|
else
|
||||||
# No errors found
|
# No errors found
|
||||||
#########################################
|
|
||||||
# Create status API for Failed language #
|
###############################################
|
||||||
#########################################
|
# Create Validate language var from Var input #
|
||||||
CallStatusAPI "$LANGUAGE" "success"
|
###############################################
|
||||||
|
VALIDATE_LANGUAGE="VALIDATE_${LANGUAGE}"
|
||||||
|
|
||||||
|
######################################
|
||||||
|
# Check if we validated the langauge #
|
||||||
|
######################################
|
||||||
|
if [ "${!VALIDATE_LANGUAGE}" == "true" ]; then
|
||||||
|
CallStatusAPI "$LANGUAGE" "success"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue