build(deps): bump SamMorrowDrums/mcp-server-diff from 3521651bb0d3cc267a23df8d94a2a645556980a4 to 40d992e0a220e5b63378758f9a40d6a8982898d2 #4408
Workflow file for this run
This file contains hidden or 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: Documentation Check | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| docs-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Build UI | |
| uses: ./.github/actions/build-ui | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Build docs generator | |
| run: go build -o github-mcp-server ./cmd/github-mcp-server | |
| - name: Generate documentation | |
| run: ./github-mcp-server generate-docs | |
| - name: Check for documentation changes | |
| run: | | |
| if ! git diff --exit-code README.md; then | |
| echo "❌ Documentation is out of date!" | |
| echo "" | |
| echo "The generated documentation differs from what's committed." | |
| echo "Please run the following command to update the documentation:" | |
| echo "" | |
| echo " go run ./cmd/github-mcp-server generate-docs" | |
| echo "" | |
| echo "Then commit the changes." | |
| echo "" | |
| echo "Changes detected:" | |
| git diff README.md | |
| exit 1 | |
| else | |
| echo "✅ Documentation is up to date!" | |
| fi |