[GEN-2217]: enhance destinations documentation auto-generation script #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify CRD API docs | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check-doc-change: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Generate docs | |
run: | | |
cd api && make docgen | |
- name: Check for changes | |
run: | | |
if [[ $(git diff --exit-code) ]]; then | |
git diff | |
echo "CRD API docs need to be updated. Pleas run `make docgen` and commit the changes." | |
exit 1 | |
fi |