2024-05-03 16:23:35 -04:00
|
|
|
name: Links
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '00 18 * * *'
|
|
|
|
jobs:
|
|
|
|
linkChecker:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
2024-05-06 17:18:46 -04:00
|
|
|
- name: Checkout next
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Checkout v7
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
path: v7
|
|
|
|
|
2024-05-05 06:41:05 -04:00
|
|
|
- name: Install lychee
|
|
|
|
run: |
|
|
|
|
curl -sLO "https://github.com/lycheeverse/lychee/releases/download/v0.15.0/lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz"
|
|
|
|
tar -xvzf "lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz"
|
|
|
|
rm "lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz"
|
|
|
|
install -t "$HOME/.local/bin" -D lychee
|
2024-05-03 16:23:35 -04:00
|
|
|
|
|
|
|
- name: Link Checker
|
|
|
|
id: lychee
|
2024-05-06 17:18:46 -04:00
|
|
|
run: ./lychee docs v7/docs --format markdown
|
|
|
|
|
|
|
|
- name: Update issue
|
|
|
|
if: failure()
|
|
|
|
uses: https://github.com/peter-evans/create-issue-from-file@v5.0.0
|
|
|
|
with:
|
|
|
|
title: Dead links report
|
|
|
|
issue-number: 583
|
|
|
|
content-filepath: ./report.md
|