From 5d91a2087f5f839b598cdaf19e7692dec884e092 Mon Sep 17 00:00:00 2001 From: Meysam Azad Date: Tue, 13 Feb 2024 17:24:46 +0700 Subject: [PATCH] chore(ci): add lychee --- .github/workflows/ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b37810d..043e2ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ permissions: contents: write jobs: - deploy: + site: runs-on: ubuntu-latest steps: - name: Checkout @@ -35,3 +35,21 @@ jobs: - name: Install dependencies run: pip install -U pip -r requirements.txt - run: mkdocs gh-deploy --force + + lychee: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1 + with: + fail: ${{ github.ref == 'refs/heads/main' }} + - 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