mcp: fix flaky ExampleLoggingTransport #86
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: README Check | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'internal/readme/**' | |
| - 'README.md' | |
| - 'internal/docs/**' | |
| - 'docs/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| readme-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Check docs is up-to-date | |
| run: | | |
| go generate ./... | |
| if [ -n "$(git status --porcelain)" ]; then | |
| echo "ERROR: docs are not up-to-date!" | |
| echo "" | |
| echo "The docs differ from what would be generated by `go generate ./...`." | |
| echo "Please update internal/**/*.src.md instead of directly editing README.md or docs/ files," | |
| echo "then run `go generate ./...` to regenerate docs." | |
| echo "" | |
| echo "Changes:" | |
| git status --porcelain | |
| echo "" | |
| echo "Diff:" | |
| git diff | |
| exit 1 | |
| fi | |
| echo "Docs are up-to-date." |