Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPGreen committed Nov 22, 2024
1 parent 58c0d2f commit c91e523
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/test-adoc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
shell: ${{ env.shell }}
run: |
# Builds the adoc file using asciidoctor, discarding the output
# This outputs any warnings etc to the console
# This logs any warnings etc
# asciidoc doesn't handle "include::partial" (this is supported by Antora on top), so we ignore any of those errors
# We can't use Antora directly because if built in isolation, none of the links between documentation repos resolve
Expand All @@ -41,7 +41,8 @@ runs:
if [[ ${result} != 0 ]]; then
exit ${result}
elif [[ ${output} ]]; then
echo "Failed with output:"
echo "${output}"
while IFS= read -r line; do
echo "::error::${line}"
done <<< "${output}"
exit 1
fi

0 comments on commit c91e523

Please sign in to comment.