forked from duckdb/duckdb-web
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 920 Bytes
/
Copy pathlinkchecker.yml
File metadata and controls
31 lines (25 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Link Checker
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * *" # run every day at 4AM
jobs:
LinkChecker:
name: Link Checker
runs-on: ubuntu-24.04
if: github.ref == 'refs/heads/main' && github.repository == 'duckdb/duckdb-web'
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v7
with:
python-version: '3.12'
- run: pip install linkchecker --user
- name: Link Checker ignoring the old documentation pages (and keeping the lts and current pages)
continue-on-error: true
run: |
linkchecker https://duckdb.org/ --ignore-url 'https?://duckdb\.org/docs/[0-9]*.[0-9]*/.*' --config .github/linkchecker/linkchecker.conf --file-output html/utf-8/report.html
- run: cat report.html >> ${GITHUB_STEP_SUMMARY}
if: always()