Skip to content

Commit

Permalink
Test pr#7
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnotmitt committed Jan 8, 2021
1 parent 3063fbb commit 4f7a5e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -68,7 +70,6 @@ else
doxygen $1
fi


# if enabled, make latex pdf output
if [ "$BUILD_LATEX" = true ] ; then
cd $LATEX_DIR
Expand Down

0 comments on commit 4f7a5e5

Please sign in to comment.