Skip to content

Commit 7bb8e3d

Browse files
chore: trying with mkdocs build
1 parent a04e986 commit 7bb8e3d

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

.github/workflows/reusable-build-test-release.yml

+5-22
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ jobs:
323323
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"
324324
325325
validate-docs-change:
326-
runs-on: ubuntu-latest
326+
runs-on: ubuntu-latest
327+
container:
328+
image: python:3.8
327329
steps:
328330
- uses: actions/checkout@v4
329331
with:
@@ -332,29 +334,10 @@ jobs:
332334
- name: Installing requirements
333335
run: |
334336
pip install pip -U
335-
pip install mkdocs==1.6.1 mkdocs-material==9.6.9
337+
pip install mkdocs==1.6.1 mkdocs-material==9.6.9 poetry
336338
- name: validate
337339
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
340+
poetry run mkdocs build --strict
358341
359342
fossa-scan:
360343
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)