File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1- name : golangci- lint
1+ name : lint
22
33on :
44 push :
2626
2727 - name : 🛩️ golangci-lint
2828 run : make lint
29+ crd-docs-check :
30+ name : Check CRD Docs
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@v4
34+ - name : Download crd-ref-docs
35+ run : |
36+ mkdir -p ./bin
37+ curl -L -o ./bin/crd-ref-docs.tar.gz https://github.com/elastic/crd-ref-docs/releases/download/v0.1.0/crd-ref-docs_0.1.0_Linux_x86_64.tar.gz
38+ tar -xzvf ./bin/crd-ref-docs.tar.gz -C ./bin
39+ chmod +x ./bin/crd-ref-docs
40+ - name : Generate CRD Docs
41+ run : |
42+ make generate-crd-docs
43+ - name : Check CRD Docs Diff
44+ run : |
45+ if ! git diff --exit-code -- docs/crd/api.md; then
46+ echo "docs/crd/api.md has changed. Please run 'make generate-crd-docs' and commit the updated file."
47+ exit 1
48+ fi
You can’t perform that action at this time.
0 commit comments