From 43f131df0b0b4920883fa31a032402c013d40770 Mon Sep 17 00:00:00 2001 From: David Finol Date: Thu, 26 Aug 2021 17:54:47 -0500 Subject: [PATCH] Use exit code to fail when code compile fails --- 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;