From 3a347a904deb041ad5dcd3dc4973f78efb4731f2 Mon Sep 17 00:00:00 2001 From: David Young Date: Tue, 23 Aug 2022 22:49:03 +1200 Subject: [PATCH] Try adding lychee to sanity check Signed-off-by: David Young --- .../workflows/mkdocs-build-sanity-check.yml | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/mkdocs-build-sanity-check.yml b/.github/workflows/mkdocs-build-sanity-check.yml index 1829add..ab20a27 100644 --- a/.github/workflows/mkdocs-build-sanity-check.yml +++ b/.github/workflows/mkdocs-build-sanity-check.yml @@ -26,9 +26,18 @@ jobs: - name: Test mkdocs builds run: python3 -m mkdocs build - # - name: Check for broken links - # uses: lycheeverse/lychee-action@v1.0.9 - # with: - # args: --verbose --no-progress site/**/*.html - # env: - # GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1 + with: + args: --verbose --no-progress site/**/*.html + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Create Issue From File + if: steps.lychee.outputs.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 \ No newline at end of file