From 80144d17be11e4e466d3aabdf97de94e5ace05df Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Wed, 3 Apr 2024 13:35:28 -0700 Subject: [PATCH] Update link check action to test weekly --- .github/workflows/linkcheck.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 5b5c142a..d80f709a 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -1,24 +1,28 @@ -name: Links +name: Link check (weekly) on: repository_dispatch: workflow_dispatch: schedule: - - cron: "10 02 * * *" + - cron: "10 02 * * 6" jobs: linkChecker: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v1.9.0 + with: + args: --verbose --no-progress _site/*.html + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Create Issue From File if: env.lychee_exit_code != 0 - uses: peter-evans/create-issue-from-file@v4 + uses: peter-evans/create-issue-from-file@v5 with: title: Link Checker Report content-filepath: ./lychee/out.md