Skip to main content
Glama
guard-built-artifacts.yml1.15 kB
name: Prevent Built Site Artifacts in Main on: pull_request: branches: [ main ] jobs: guard: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 with: fetch-depth: 0 - name: Detect disallowed built-site changes env: BASE_SHA: ${{ github.event.pull_request.base.sha }} HEAD_SHA: ${{ github.sha }} run: | set -euo pipefail echo "Checking changes from $BASE_SHA to $HEAD_SHA" CHANGED_FILES=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA") echo "$CHANGED_FILES" | sed 's/^/ - /' # Disallow adding built site artifacts to main # Block top-level index.html, assets/*, search/*, sitemap.* at repo root if echo "$CHANGED_FILES" | grep -E '^(index\.html|assets/|search/|sitemap\.xml(\.gz)?$)' >/dev/null; then echo "" echo "❌ Built site artifacts detected in PR targeting main." echo "Do not commit generated documentation to main. CI publishes docs to gh-pages." exit 1 fi echo "✅ No disallowed built-site artifacts detected."

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mnemexai/mnemex'

If you have feedback or need assistance with the MCP directory API, please join our Discord server