From cb33fa8a1f9a868f8c29d1325c73c55a78356100 Mon Sep 17 00:00:00 2001 From: Shubham Sinha Date: Wed, 9 Nov 2022 19:18:26 +0530 Subject: [PATCH] Fixed config path check (#56) --- src/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entrypoint.sh b/src/entrypoint.sh index fc38504..18ac250 100755 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -12,7 +12,7 @@ echo "::add-matcher::matcher.json" # Custom path for yamllint configuration input if [[ -n "${INPUT_CONFIG}" ]]; then - if [[ -f "${INPUT_CONFIG}" ]]; then + if [[ ! -f "${INPUT_CONFIG}" ]]; then echo "::error ::Custom yamllint configuration file not found: ${INPUT_CONFIG}" exit 1 fi