From f42f7923ed82ceb15919846804067a9009dfca0b Mon Sep 17 00:00:00 2001 From: Webber Takken Date: Sun, 27 Sep 2020 21:44:14 +0200 Subject: [PATCH] Add intructions for debugging (#154) --- action/entrypoint.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) mode change 100644 => 100755 action/entrypoint.sh diff --git a/action/entrypoint.sh b/action/entrypoint.sh old mode 100644 new mode 100755 index 38c11a0d..d3dfe655 --- a/action/entrypoint.sh +++ b/action/entrypoint.sh @@ -8,6 +8,23 @@ source /steps/activate.sh source /steps/build.sh source /steps/return_license.sh +# +# Instructions for debugging +# + +if [[ $BUILD_EXIT_CODE -gt 0 ]]; then +echo "" +echo "###########################" +echo "# Failure #" +echo "###########################" +echo "" +echo "Please note that the exit code is not very descriptive." +echo "Most likely it will not help you solve the issue." +echo "" +echo "To find the reason for failure: please search for errors in the log above." +echo "" +fi; + # # Exit with code from the build step. #