diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index d37f1e6c..a59eb794 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -19,7 +19,7 @@ jobs: - name: Check for changes in docs/ and deploy run: | - if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "^docs/"; then + if git diff --quiet HEAD^ HEAD docs/; then echo "Changes detected in docs/" pip install poetry poetry install --only doc