Skip to content

Commit

Permalink
Add checking autogenerated CLI docs to PR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
amisevsk committed Mar 5, 2024
1 parent bf1ea49 commit 0a496e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,12 @@ jobs:
echo "Project tests failed"
exit 1
fi
- name: Check CLI docs generation
run: |
docs/src/docs/cli/generate.sh > /dev/null
if [[ ! -z $(git status -s) ]]; then
echo "CLI documentation is out of date"
echo "Run docs/src/docs/cli/generate.sh and commit the result"
exit 1
fi

0 comments on commit 0a496e8

Please sign in to comment.