Skip to content

Merge pull request #907 from pipecat-ai/mb/docs-pr-4533 #1065

Merge pull request #907 from pipecat-ai/mb/docs-pr-4533

Merge pull request #907 from pipecat-ai/mb/docs-pr-4533 #1065

Workflow file for this run

name: Check for Broken Links
on:
pull_request:
branches:
- main
push:
branches:
- main
# Allow manual trigger
workflow_dispatch:
permissions:
pull-requests: write
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Mintlify CLI
run: npm install -g mint
- name: Check for broken links
run: |
output=$(mint broken-links --check-anchors --check-redirects 2>&1) && exit 0 || true
# Ignore non-HTTP protocol links (cursor://, vscode:, etc.)
if echo "$output" | grep '⎿' | grep -qvE '(cursor://|vscode:)'; then
echo "$output"
exit 1
fi
echo "Only non-HTTP protocol links found — ignoring"
- name: Comment on PR (if failed)
if: failure() && github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '❌ **Broken links detected!**\n\nPlease check the workflow logs for details on which links are broken and fix them before merging.'
})