Use dir.
This commit is contained in:
parent
75a2a5552a
commit
8a7365c673
1 changed files with 6 additions and 43 deletions
49
.github/actions/build-docs/action.yml
vendored
49
.github/actions/build-docs/action.yml
vendored
|
@ -170,51 +170,14 @@ runs:
|
||||||
echo "TRACE 1"
|
echo "TRACE 1"
|
||||||
# OUTPUT_DIR=`build-docs ${{ inputs.asdf-system }}`
|
# OUTPUT_DIR=`build-docs ${{ inputs.asdf-system }}`
|
||||||
|
|
||||||
cat > test.ros <<EOF
|
build-docs ${{ inputs.asdf-system }} output.dir
|
||||||
(ros:ensure-asdf)
|
|
||||||
|
|
||||||
(defpackage :ros.script.build-docs
|
if [[ ! -e output.dir ]]; then
|
||||||
(:use :cl))
|
echo 'Unable to build docs'
|
||||||
(in-package :ros.script.build-docs)
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
(defun main (&rest args)
|
OUTPUT_DIR=$(cat output.dir)
|
||||||
(declare (ignorable args))
|
|
||||||
(format *standard-output*
|
|
||||||
"Standard Foo~%")
|
|
||||||
(format *error-output*
|
|
||||||
"Error Bar~%")
|
|
||||||
(format *trace-output*
|
|
||||||
"Trace Blah~%")
|
|
||||||
(format *terminal-io*
|
|
||||||
"Terminal Minor~%"))
|
|
||||||
EOF
|
|
||||||
|
|
||||||
ros -Q test.ros > out 2> err
|
|
||||||
|
|
||||||
echo TTTTT 1_out
|
|
||||||
cat out
|
|
||||||
echo TTTTT 1_err
|
|
||||||
cat err
|
|
||||||
|
|
||||||
|
|
||||||
build-docs ${{ inputs.asdf-system }} > build-docs.out 2> build-docs.err
|
|
||||||
|
|
||||||
# echo "TRACE 1_1"
|
|
||||||
# echo =============
|
|
||||||
# echo ${OUTPUT_DIR}
|
|
||||||
# echo =============
|
|
||||||
|
|
||||||
echo "TRACE 1_out"
|
|
||||||
echo =============
|
|
||||||
cat build-docs.out
|
|
||||||
echo =============
|
|
||||||
|
|
||||||
echo "TRACE 1_err"
|
|
||||||
echo =============
|
|
||||||
cat build-docs.err
|
|
||||||
echo =============
|
|
||||||
|
|
||||||
OUTPUT_DIR=$(cat build-docs.out)
|
|
||||||
|
|
||||||
echo "TRACE 2"
|
echo "TRACE 2"
|
||||||
echo "::set-output name=build-dir::${OUTPUT_DIR}"
|
echo "::set-output name=build-dir::${OUTPUT_DIR}"
|
||||||
|
|
Loading…
Reference in a new issue