From cddaeba84d42cad01781aa12b15c67b4e8239d69 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Tue, 8 Nov 2022 18:57:44 +0100 Subject: [PATCH] iox-#1781 Cache link checker results for up to one day --- .github/workflows/lint_pull_request.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint_pull_request.yml b/.github/workflows/lint_pull_request.yml index 8875c5cdec..917f8bc70d 100644 --- a/.github/workflows/lint_pull_request.yml +++ b/.github/workflows/lint_pull_request.yml @@ -43,8 +43,14 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Restore lychee cache + uses: actions/cache@v3 + with: + path: .lycheecache + key: cache-lychee-${{ github.ref_name }} + - name: Link Checker uses: lycheeverse/lychee-action@v1.5.2 with: fail: true - args: --verbose --no-progress './**/*.md' --github-token ${{secrets.GITHUB_TOKEN}} --max-concurrency 1 + args: --cache --max-cache-age 1d --verbose --no-progress './**/*.md' --github-token ${{secrets.GITHUB_TOKEN}} --max-concurrency 1