diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index bfd812a1855..ef4c38ce951 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -36,7 +36,12 @@ jobs: - name: Run doc generation run: yarn docgen:all - name: Check for changes in docs-devsite dir (fail if so) - run: git diff --exit-code docs-devsite + run: | + if [[ -n "$(git status docs-devsite --porcelain)" ]]; then + echo "Unstaged changes detected:" + git status -s + exit 1 + fi - name: Reference documentation needs to be updated. See message below. if: ${{ failure() }} run: echo "Changes in this PR affect the reference docs. Run \`yarn docgen:all\` locally to regenerate docs and add them to this PR." \ No newline at end of file