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 74778b8 commit 61a8e43
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/actions/test-adoc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@ runs:
-v \
"include file not found" | \
tee \
/dev/stdout \
/dev/err \
)
result=$?
# Fail the action if there was an unexpected error code, or any output from the build
if [[ $? != 0 || ${output} ]]; then
exit 1
if [[ ${result} != 0 ]]; then
exit ${result}
elif [[ ${output} ]]; then
echo "Failed with output:"
echo "${output}"
exit 1
fi

0 comments on commit 61a8e43

Please sign in to comment.