Skip to content

Commit 4c2c78b

Browse files
authored
Use git status to check for changes to devsite (#8448)
1 parent fa0ed08 commit 4c2c78b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/check-docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ jobs:
3636
- name: Run doc generation
3737
run: yarn docgen:all
3838
- name: Check for changes in docs-devsite dir (fail if so)
39-
run: git diff --exit-code docs-devsite
39+
run: |
40+
if [[ -n "$(git status docs-devsite --porcelain)" ]]; then
41+
echo "Unstaged changes detected:"
42+
git status -s
43+
exit 1
44+
fi
4045
- name: Reference documentation needs to be updated. See message below.
4146
if: ${{ failure() }}
4247
run: echo "Changes in this PR affect the reference docs. Run \`yarn docgen:all\` locally to regenerate docs and add them to this PR."

0 commit comments

Comments
 (0)