Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed Jul 8, 2024
1 parent 4878721 commit dde784c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ jobs:

- name: Generate API docs
run: |
sphinx-apidoc -o /tmp/docs tus_storagehandler/
poetry run sphinx-apidoc -o /tmp/docs tus_storagehandler/
- name: Compare docs with main branch
id: check_docs_diff
run: |
shasum /tmp/docs/* > /tmp/docs.sha
shasum /docs/pages/* > /docs/project_doc.sha
diff=$(diff /tmp/docs.sha /docs/project_doc.sha) || true
rm -f docs/pages/.gitkeep # Remove placeholder file
shasum docs/pages/* > docs/project_doc.sha
diff=$(diff /tmp/docs.sha docs/project_doc.sha) || true
if [[ -n "$diff" ]]; then
echo "::error::API documentation is out of date."
exit 1
Expand Down
Empty file added docs/pages/.gitkeep
Empty file.

0 comments on commit dde784c

Please sign in to comment.