From 878ffb5b8cbae7e264737b3145dace3de0c88284 Mon Sep 17 00:00:00 2001 From: Mitch Dawson Date: Thu, 9 Jan 2025 09:58:31 +0000 Subject: [PATCH] initial commit --- .../workflows/runbooks-broken-link-check.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/runbooks-broken-link-check.yml diff --git a/.github/workflows/runbooks-broken-link-check.yml b/.github/workflows/runbooks-broken-link-check.yml new file mode 100644 index 00000000..65945643 --- /dev/null +++ b/.github/workflows/runbooks-broken-link-check.yml @@ -0,0 +1,30 @@ +name: runbooks broken link check +on: + schedule: + # Once per day at 00:00 + - cron: "0 0 * * *" + +jobs: + runbooks-broken-link-check: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/checkout@v4 + + - name: Link Checker + id: Lychee + uses: lycheeverse/lychee-action@v2 + with: + args: --verbose --format detailed https://runbooks.find-moj-data.service.justice.gov.uk/ + fail: false + + + # Uncomment the following block to create an issue if there are broken links + # - name: Create Issue From File + # if: steps.Lychee.outputs.exit_code != 0 + # uses: peter-evans/create-issue-from-file@v5 + # with: + # title: Link Checker Report + # content-filepath: ./lychee/out.md + # labels: report, automated issue