diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3756bf9eb..ee73f9859 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -13,7 +13,7 @@ jobs: id: changes run: | git fetch --all - echo ::set-output name=docs::$(git diff --quiet origin/main -- docs && echo "false" || echo "true") + echo ::set-output name=docs::$(git show --name-only --oneline | grep docs/ && echo true || echo false) - uses: actions/setup-python@v2 if: steps.changes.outputs.docs == 'true' with: