Skip to content

Tobi dashboard and update #52

Tobi dashboard and update

Tobi dashboard and update #52

Workflow file for this run

name: Link Check
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
issues: read
jobs:
lychee:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Restore lychee cache
id: restore-cache
uses: actions/cache/restore@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.ref }}-${{ hashFiles('.lycheerc.toml') }}
restore-keys: cache-lychee-${{ github.ref }}-
- name: Link checker
uses: lycheeverse/lychee-action@v2
with:
args:
--config .lycheerc.toml --root-dir ${{ github.workspace }} './*.md' './*.qmd'
'./posts/**/*.qmd' './events/**/*.qmd' './dashboards/**/*.qmd'
fail: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Sync Python environment
run: uv sync
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render Quarto project
run: uv run quarto render
- name: Rendered HTML link checker
uses: lycheeverse/lychee-action@v2
with:
args: >
--offline --config .lycheerc.toml --root-dir ${{ github.workspace }}/_site
'./_site/**/*.html'
fail: true
- name: Save lychee cache
uses: actions/cache/save@v4
if: always()
with:
path: .lycheecache
key: ${{ steps.restore-cache.outputs.cache-primary-key }}