Fix onboarding redirect and add org admin audit tool #2097
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: Check for Broken Links | |
| on: | |
| push: | |
| branches: [ main, develop, '2.6.x' ] | |
| pull_request: | |
| branches: [ main, develop, '2.6.x' ] | |
| workflow_run: | |
| workflows: ["Sync Versioned Docs"] | |
| types: | |
| - completed | |
| jobs: | |
| broken-links: | |
| runs-on: ubuntu-latest | |
| # Skip if triggered by sync workflow that failed | |
| if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| # Ensure we get latest changes including synced docs | |
| ref: ${{ github.event.workflow_run.head_branch || github.ref }} | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| env: | |
| PUPPETEER_SKIP_DOWNLOAD: 'true' | |
| - name: Check for broken links in docs | |
| run: npx mintlify@latest broken-links | |
| - name: Check README links | |
| run: npx markdown-link-check README.md --config .markdown-link-check.json |