Skip to content

links check

links check #176

Workflow file for this run

name: links check
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
pull_request:
paths:
- ".github/workflows/links.yml"
jobs:
check-links:
name: check external links
runs-on: ubuntu-24.04
timeout-minutes: 15
permissions:
contents: read
env:
SET: base
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/setup_nix
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Restore lychee cache
id: restore-cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Run lychee
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
nix run ".#${SET}.nixpkgs.lychee" -- --config tools/lychee/config-external.toml .
- name: Save lychee cache
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
if: always()
with:
path: .lycheecache
key: ${{ steps.restore-cache.outputs.cache-primary-key }}