From d597a359c22c13d7a0988356cd92c2877e0e17ac Mon Sep 17 00:00:00 2001 From: TheFox0x7 Date: Sun, 5 May 2024 12:41:05 +0200 Subject: [PATCH] drop action in favor of plain script --- .forgejo/workflows/links.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/links.yml b/.forgejo/workflows/links.yml index ab1946bd..0a0855a9 100644 --- a/.forgejo/workflows/links.yml +++ b/.forgejo/workflows/links.yml @@ -3,15 +3,20 @@ name: Links on: schedule: - cron: '00 18 * * *' - jobs: linkChecker: runs-on: docker steps: - uses: actions/checkout@v4 + - name: Install lychee + run: | + # Cleanup artifacts from previous run in case it crashed + rm -rf "lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz" lychee + 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 - uses: https://github.com/lycheeverse/lychee-action@v1 - with: - args: --verbose --no-progress --scheme http --scheme https -E . + run: ./lychee --verbose --no-progress --scheme http --scheme https -f markdown -E ./docs