diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 032768d..c2a3fb0 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -27,14 +27,14 @@ 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 + shasum tus_storagehandler/docs/pages/* > tus_storagehandler/docs/project_doc.sha + diff=$(diff /tmp/docs.sha tus_storagehandler/docs/project_doc.sha) || true if [[ -n "$diff" ]]; then echo "::error::API documentation is out of date." exit 1