0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-30 19:03:43 -05:00
forgejo-docs/.forgejo/workflows/links.yml
TheFox0x7 5471e62e60 Exclude links (#595)
Added excludes for some site errors. Added issue update on fail

Reviewed-on: https://codeberg.org/forgejo/docs/pulls/595
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
2024-05-06 21:18:46 +00:00

35 lines
964 B
YAML

name: Links
on:
schedule:
- cron: '00 18 * * *'
jobs:
linkChecker:
runs-on: docker
steps:
- name: Checkout next
uses: actions/checkout@v4
- name: Checkout v7
uses: actions/checkout@v4
with:
path: v7
- 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
- name: Link Checker
id: lychee
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