cdp: added resources and verbs for the cluster role #300
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: Docs | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**.md' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**.md' | |
jobs: | |
markdown-link-check: | |
name: Broken Links | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Run link check | |
uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
with: | |
use-quiet-mode: 'no' | |
use-verbose-mode: 'yes' | |
check-modified-files-only: 'yes' | |
config-file: '.github/mlc_config.json' | |
base-branch: main | |
autogenerated-doc-check: | |
name: Verify Auto-Generated Docs | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
go-version: [1.21.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Fail if auto-generated docs are modified | |
run: | | |
set +e | |
cd docs && make test | |
exitcode=$? | |
echo "exitcode=$exitcode" >> $GITHUB_OUTPUT | |
if [ $exitcode -eq 1 ] ; then | |
echo | |
echo -e "\e[31mAuto-generated docs have been modified incorrectly." | |
echo -e "\e[31mAuto-generated docs changes should be made in ./docs/src" | |
echo -e "\e[31mPlease update your PR to address these issues.\e[0m" | |
exit $exitcode | |
fi | |
exit $exitcode |