File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ jobs:
117
117
# --scan: Publish the build scan. This will only work on PRs from apache/kafka and trunk
118
118
# --no-scan: For public fork PRs, we won't attempt to publish the scan
119
119
run : |
120
- ./gradlew --build-cache --info $SCAN_ARG check -x test
120
+ ./gradlew --build-cache --info $SCAN_ARG check siteDocTar -x test
121
121
- name : Archive check reports
122
122
if : always()
123
123
uses : actions/upload-artifact@v4
@@ -137,6 +137,16 @@ jobs:
137
137
run : python .github/scripts/rat.py
138
138
env :
139
139
GITHUB_WORKSPACE : ${{ github.workspace }}
140
+ - name : Check generated documentation
141
+ # Check if there are any empty files under ./site-docs/generated, If any empty files are found, print an error
142
+ # message and list the empty files
143
+ run : |
144
+ tar zxvf core/build/distributions/kafka_2.13-$(./gradlew properties | grep version: | awk '{print $NF}' | head -n 1)-site-docs.tgz
145
+ if find ./site-docs/generated -type f -exec grep -L "." {} \; | grep -q "."; then
146
+ echo "One or more documentation files are empty!" >&2
147
+ find ./site-docs/generated -type f -exec grep -L "." {} \; >&2
148
+ exit 1
149
+ fi
140
150
141
151
test :
142
152
needs : [validate, load-catalog]
You can’t perform that action at this time.
0 commit comments