CI: Fixed doc job failing on master while it should not

This commit is contained in:
matlabbe
2026-08-07 21:16:28 -07:00
parent 47ce2b0c74
commit 9cee4c17b2

View File

@@ -207,5 +207,12 @@ jobs:
echo ""
echo "- Landing page: ${url}/"
echo "- C++ API: ${url}/api/latest/"
[[ -n "${note}" ]] && { echo ""; echo "${note}"; }
# An `if` rather than `[[ ... ]] && { ... }`: as the last command in
# the group, a false test would make the group (and so the whole
# step) exit 1. `note` is empty on push, which failed every master
# run while pull requests passed.
if [[ -n "${note}" ]]; then
echo ""
echo "${note}"
fi
} >> "$GITHUB_STEP_SUMMARY"