From fbc79398721fa89006c1b8d872e13b5bcb211690 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sat, 25 Sep 2021 08:17:37 +0000 Subject: [PATCH] fix exit code handling --- script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.sh b/script.sh index b1b85a5..7a115ae 100755 --- a/script.sh +++ b/script.sh @@ -59,6 +59,6 @@ echo "EXIT_CODE_SUGGESTION: ${EXIT_CODE_SUGGESTION}" echo '::endgroup::' -if [ "${EXIT_CODE}" != 0 ] || [ "${EXIT_CODE_SUGGESTION}" != 0 ]; then +if [ -n "${EXIT_CODE}" ] || [ -n "${EXIT_CODE_SUGGESTION}" ]; then exit 1 fi