From 65c335ee886228302c8a59a17f2fcb0aec9c1fc8 Mon Sep 17 00:00:00 2001 From: Robin Moffatt Date: Thu, 12 Oct 2023 12:18:14 +0100 Subject: [PATCH] Add external link checking --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..40deb2f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Docs Link Check + +on: + workflow_dispatch: + schedule: + - cron: "00 8 * * *" + +jobs: + link-check: + name: Check links + runs-on: ubuntu-latest + steps: + - name: Check links + id: lychee + uses: lycheeverse/lychee-action@v1.8.0 + with: + args: https://rmoff.net --no-progress + fail: true + jobSummary: true + format: markdown + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Create Issue From File + if: env.lychee_exit_code != 0 + uses: peter-evans/create-issue-from-file@v4 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: report, automated issue