From a397b234dea941a4fb97032676ddda6e663a51a6 Mon Sep 17 00:00:00 2001 From: Dom Webber Date: Sun, 31 Mar 2024 04:20:22 +0100 Subject: [PATCH] add CI-based link checking --- .github/workflows/check-links.yml | 11 +++++++++++ .github/workflows/cron.yml | 10 ++++++++++ .github/workflows/main.yml | 11 +++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .github/workflows/check-links.yml create mode 100644 .github/workflows/cron.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml new file mode 100644 index 0000000..d66136a --- /dev/null +++ b/.github/workflows/check-links.yml @@ -0,0 +1,11 @@ +name: Check Links + +on: + workflow_call: + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: lycheeverse/lychee-action@v1.9.0 diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml new file mode 100644 index 0000000..6dd0149 --- /dev/null +++ b/.github/workflows/cron.yml @@ -0,0 +1,10 @@ +name: Check Scheduled + +on: + schedule: + - cron: "0 0 1 * *" + +jobs: + check-links: + uses: ./.github/workflows/check-links.yml + secrets: inherit diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..36797ac --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,11 @@ +name: Check Main + +on: + push: + branches: + - main + +jobs: + check-links: + uses: ./.github/workflows/check-links.yml + secrets: inherit