File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,13 @@ echo ::group:: Running Sphinx builder
6565build_dir=/tmp/sphinxnotes-pages
6666mkdir -p $build_dir || true
6767echo Temp directory \" $build_dir \" is created
68- if ! sphinxnotes-incrbuild -b html $INPUT_SPHINX_BUILD_OPTIONS " $doc_dir " " $build_dir " ; then
69- echo ::group:: Dumping Sphinx traceback
70- for l in $( find /tmp -name ' sphinx-err*.log' ) ; do
68+ if [ " $INPUT_CACHE " == " true" ]; then
69+ sphinx_build=sphinxnotes-incrbuild
70+ else
71+ sphinx_build=sphinx-build
72+ fi
73+ if ! $sphinx_build -b html $INPUT_SPHINX_BUILD_OPTIONS " $doc_dir " " $build_dir " ; then
74+ for l in $( find /tmp -name ' sphinx-err*.log' 2> /dev/null) ; do
7175 # Replace "\n" to "%0A" for supporting multiline text in the error message.
7276 # https://github.com/actions/toolkit/issues/193#issuecomment-605394935
7377 traceback=$( tail -n500 $l | awk ' { printf "%s%%0A", $0 }' )
You can’t perform that action at this time.
0 commit comments