From 4f7a5e556dccec38e54e3c7dd5e098a4b8955805 Mon Sep 17 00:00:00 2001 From: "Matt Coomber (UK-EDI)" Date: Fri, 8 Jan 2021 13:09:49 +0000 Subject: [PATCH] Test pr#7 --- action.yml | 4 ++-- entrypoint.sh | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 37f7885..e1354bb 100644 --- a/action.yml +++ b/action.yml @@ -6,11 +6,11 @@ branding: inputs: doxyfile-path: description: 'Path to Doxyfile' - required: true + required: false default: './Doxyfile' working-directory: description: 'Working directory' - required: true + required: false default: '.' enable-latex: description: 'Generate latex documentation' diff --git a/entrypoint.sh b/entrypoint.sh index 15685cd..b4cdd91 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,8 @@ # $1 is the path to the Doxyfile # $2 is the directory where doxygen should be executed # $3 is a boolean: true -> enable latex generation, false -> skip latex generation +# $4 is a boolean: true -> fail on warnings, except those in $5, false -> only fail if error +# $5 is a string: grep syntax if [ ! -d $2 ]; then echo "Path $2 could not be found!" @@ -34,10 +36,10 @@ apk add $PACKAGES # Tests if the $4 is either 'true' or 'false'. if [ ! -z $4 ]; then echo "Failing on warnings is enabled." - FAIL_ON_WARNINGS=true + FAIL_ON_WARNINGS=1 else echo "Failing on warnings disabled." - FAIL_ON_WARNINGS=false + FAIL_ON_WARNINGS=0 fi if [ "$FAIL_ON_WARNINGS" = true ]; then @@ -68,7 +70,6 @@ else doxygen $1 fi - # if enabled, make latex pdf output if [ "$BUILD_LATEX" = true ] ; then cd $LATEX_DIR