From 73799435ae40e203b4309570904011bd15c52c72 Mon Sep 17 00:00:00 2001 From: "Jorge O. Castro" Date: Wed, 16 Aug 2023 18:37:39 -0400 Subject: [PATCH] chore(ci): cache link checker (#357) --- .github/workflows/links.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 0a5fd948..49d07548 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -8,8 +8,24 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + + - name: Restore lychee cache + id: restore-cache + uses: actions/cache/restore@v3 + with: + path: .lycheecache + key: cache-lychee-${{ github.sha }} + restore-keys: cache-lychee- - - name: Link Checker + - name: Run lychee uses: lycheeverse/lychee-action@v1.8.0 with: + args: "--cache --max-cache-age 1d ." fail: false + + - name: Save lychee cache + uses: actions/cache/save@v3 + if: always() + with: + path: .lycheecache + key: ${{ steps.restore-cache.outputs.cache-primary-key }}