From 7d856b8ede39dde5cd6af94e0c77ec3f8fce02a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rickard=20Lo=CC=88fstro=CC=88m?= Date: Mon, 24 Feb 2020 22:40:25 +0100 Subject: [PATCH] fix: exit codes --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8663cb0..766b113 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -160,11 +160,12 @@ function main() { echo "::set-output name=tf_lint_output::${tflint_output}" echo "::set-output name=tf_lint_status::${tflint_status}" - echo "$tflint_status" + exit "$tflint_exitcode" else echo "::debug::tflint is required to perform this action" + exit 1 fi