781a95f5bc
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
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@v6
|
|
|
|
- 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
|