Skip to content

Commit

Permalink
Use git status to check for changes to devsite (#8448)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlarocque authored Aug 22, 2024
1 parent fa0ed08 commit 4c2c78b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit 4c2c78b

Please sign in to comment.