From 7563db4160ac5a1ff0863a1daa90095c7dfb49cb Mon Sep 17 00:00:00 2001 From: David Finol Date: Sat, 28 Aug 2021 12:48:23 -0500 Subject: [PATCH] Use exit code to fail when code compile fails (#143) --- action/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action/entrypoint.sh b/action/entrypoint.sh index 0b5b703..1a71e9f 100644 --- a/action/entrypoint.sh +++ b/action/entrypoint.sh @@ -42,6 +42,6 @@ fi; # Exit with code from the build step. # -if [ $USE_EXIT_CODE = true ]; then +if [[ $USE_EXIT_CODE == true || $TEST_RUNNER_EXIT_CODE -ne 2 ]]; then exit $TEST_RUNNER_EXIT_CODE fi;