From 68e8bd6763dc1e66487a7b8120700e92a87e098a Mon Sep 17 00:00:00 2001 From: Brian Boucheron Date: Tue, 7 Jun 2022 19:10:15 -0400 Subject: [PATCH] add a daily link check --- .github/workflows/links.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/links.yml diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 0000000..b927cc2 --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,25 @@ +name: Check links + +on: + schedule: + - cron: '42 04 * * *' + +jobs: + check-links: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Lychee Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1.5.0 + 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@v3 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: report, automated