docs: add search rules documentation #14
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
| # Runs on PRs targeting main and on workflow_dispatch. | |
| # Checks for missing redirects (URLs with traffic but no page or redirect) | |
| # and unused redirects (redirects with zero traffic) using Fathom Analytics data. | |
| name: Check missing redirects | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| check-missing-redirects: | |
| name: Check missing redirects | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Check missing redirects | |
| env: | |
| FATHOM_API_KEY: ${{ secrets.FATHOM_API_KEY }} | |
| FATHOM_SITE_ID: ${{ secrets.FATHOM_SITE_ID }} | |
| run: npm run check-missing-redirects |