fix: use production prefix for blog media (#829) #1544
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: External Links | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| schedule: | |
| # Weekly link-rot check, independent of code changes. | |
| - cron: "0 9 * * 1" | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: links-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lychee: | |
| name: Lychee | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| issues: write | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 24.12.0 | |
| - name: Restore lychee cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .lycheecache | |
| key: lychee-${{ github.sha }} | |
| restore-keys: lychee- | |
| - name: Run lychee | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| # README.md is a GitHub-only artifact with pre-existing | |
| # broken references (LICENSE files, lockup paths); excluded | |
| # from this check. Docs site content lives in src/pages/. | |
| args: >- | |
| --preprocess scripts/filter-external-links.ts | |
| 'src/pages/**/*.md' | |
| 'src/pages/**/*.mdx' | |
| 'vocs.config.ts' | |
| fail: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Open issue on scheduled failure | |
| if: failure() && github.event_name == 'schedule' | |
| uses: peter-evans/create-issue-from-file@v5 | |
| with: | |
| title: "Broken external links detected" | |
| content-filepath: ./lychee/out.md | |
| labels: docs, links |