From c91e5239198378a17b844ab64be5eeba2b163a66 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 22 Nov 2024 23:56:33 +0000 Subject: [PATCH] wip --- .github/actions/test-adoc/action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/test-adoc/action.yml b/.github/actions/test-adoc/action.yml index 0b6ceabb5..c477a0285 100644 --- a/.github/actions/test-adoc/action.yml +++ b/.github/actions/test-adoc/action.yml @@ -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 @@ -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