nixos-wiki-infra/.github/workflows/check-dead-links.yml
phanirithvij 0afcb72267 ci: add broken link checker action
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2024-09-17 09:51:24 +02:00

31 lines
912 B
YAML

name: "check broken links in wiki"
on:
workflow_dispatch:
# twice per month
schedule:
- cron: "0 14 1,15 * *"
jobs:
lychee:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: ./checks/linkcheck/lychee.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: upload lychee report as artifact
uses: actions/upload-artifact@v4
with:
name: lychee-report
if-no-files-found: error
path: ./checks/linkcheck/lychee*-report
- name: upload filtered xmldump artifact
uses: actions/upload-artifact@v4
with:
name: wikidump-filtered.xml
if-no-files-found: error
path: ./checks/linkcheck/workdir/wikidump-filtered.xml
compression-level: 9