File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,41 @@ jobs:
321
321
splunk_version_list=$(echo '${{ steps.determine_splunk.outputs.matrixSplunk }}' | jq -r '.[].version')
322
322
sc4s_version_list=$(echo '${{ steps.matrix.outputs.supportedSC4S }}' | jq -r '.[].version')
323
323
echo -e "## Summary of Versions Used\n- **Splunk versions used:** (${splunk_version_list})\n- **SC4S versions used:** (${sc4s_version_list})\n- Browser: Chrome" >> "$GITHUB_STEP_SUMMARY"
324
+
325
+ validate-docs-change :
326
+ runs-on : ubuntu-latest
327
+ steps :
328
+ - uses : actions/checkout@v4
329
+ with :
330
+ submodules : false
331
+ persist-credentials : false
332
+ - name : Installing requirements
333
+ run : |
334
+ pip install pip -U
335
+ pip install mkdocs==1.6.1 mkdocs-material==9.6.9
336
+ - name : validate
337
+ run : |
338
+ set -o xtrace
339
+ if [ -f "mkdocs.yml" ]; then
340
+ # Run mkdocs serve in the background and redirect output to /tmp/log
341
+ nohup mkdocs serve &> /tmp/log &
342
+ pid=$!
343
+ sleep 5
344
+
345
+ # Send SIGTERM to the mkdocs serve process and signal it to terminate
346
+ kill -TERM $pid
347
+ else
348
+ echo "mkdocs.yaml not found. Skipping mkdocs serve."
349
+ exit 0
350
+ fi
351
+
352
+ - name : check logs
353
+ if : failure()
354
+ run : |
355
+ echo -e "\033[33m⚠️ mkdocs serve exited with an error. Here are logs from mkdocs serve \033[0m"
356
+ set -o xtrace
357
+ cat /tmp/log
358
+
324
359
fossa-scan :
325
360
runs-on : ubuntu-latest
326
361
steps :
You can’t perform that action at this time.
0 commit comments