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