1 parent 4a03e78 commit 9b95615Copy full SHA for 9b95615
1 file changed
.github/workflows/verify.yaml
@@ -124,10 +124,12 @@ jobs:
124
if: steps.check-docs.outputs.has_docs == 'true'
125
run: |
126
echo "Validating docs/connector.mdx..."
127
- if node _workflows/tools/mdx-lint/mdx-lint.mjs < _caller/docs/connector.mdx; then
+ LINT_OUTPUT=$(node _workflows/tools/mdx-lint/mdx-lint.mjs < _caller/docs/connector.mdx 2>&1)
128
+ if [ $? -eq 0 ]; then
129
echo "MDX validation passed"
130
else
- echo "::error file=docs/connector.mdx::MDX validation failed. Check for malformed tags, unclosed components, or unsupported syntax."
131
+ echo "$LINT_OUTPUT"
132
+ echo "::error file=docs/connector.mdx::${LINT_OUTPUT}"
133
exit 1
134
fi
135
0 commit comments