mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 05:02:15 -05:00
adding log level (#2959)
* adding log level * Update lib/functions/detectFiles.sh Co-authored-by: Tibo Delor <delor.thibault@gmail.com> * fix space Co-authored-by: Tibo Delor <delor.thibault@gmail.com>
This commit is contained in:
parent
ec0662756d
commit
bb6a68e80b
1 changed files with 6 additions and 1 deletions
|
@ -504,12 +504,17 @@ function RunAdditionalInstalls() {
|
||||||
if [ "${VALIDATE_TERRAFORM_TFLINT}" == "true" ] && [ "${#FILE_ARRAY_TERRAFORM_TFLINT[@]}" -ne 0 ]; then
|
if [ "${VALIDATE_TERRAFORM_TFLINT}" == "true" ] && [ "${#FILE_ARRAY_TERRAFORM_TFLINT[@]}" -ne 0 ]; then
|
||||||
info "Detected TFLint Language files to lint."
|
info "Detected TFLint Language files to lint."
|
||||||
info "Trying to install the TFLint init inside:[${WORKSPACE_PATH}]"
|
info "Trying to install the TFLint init inside:[${WORKSPACE_PATH}]"
|
||||||
|
# Set the log level
|
||||||
|
TF_LOG_LEVEL="info"
|
||||||
|
if [ "${ACTIONS_RUNNER_DEBUG}" = "true" ]; then
|
||||||
|
TF_LOG_LEVEL="debug"
|
||||||
|
fi
|
||||||
#########################
|
#########################
|
||||||
# Run the build command #
|
# Run the build command #
|
||||||
#########################
|
#########################
|
||||||
BUILD_CMD=$(
|
BUILD_CMD=$(
|
||||||
cd "${WORKSPACE_PATH}" || exit 0
|
cd "${WORKSPACE_PATH}" || exit 0
|
||||||
tflint --init 2>&1
|
tflint --init --loglevel="${TF_LOG_LEVEL}" -c "${TERRAFORM_TFLINT_LINTER_RULES}" 2>&1
|
||||||
)
|
)
|
||||||
|
|
||||||
##############
|
##############
|
||||||
|
|
Loading…
Reference in a new issue