From c8d8218b587132a1f6e91a9cb379f9cc54058e29 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Sun, 9 Jul 2023 20:49:59 +0200 Subject: [PATCH] Add workflow to check for broken links Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/workflows/links.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/links.yml diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 0000000..31740dc --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,28 @@ +name: check links + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + checklinks: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Restore lychee cache + uses: actions/cache@v3 + with: + path: .lycheecache + key: cache-lychee-${{ github.sha }} + restore-keys: cache-lychee- + + - name: Check links + uses: lycheeverse/lychee-action@v1 + with: + args: "--cache --max-cache-age 1d ." + fail: true