From 8deab7e41be959126fd4a1498138425adcd7d278 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Thu, 28 Sep 2023 23:41:22 +0200 Subject: [PATCH] iox-#2011 Fix warning in cache action --- .github/workflows/lint_pull_request.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint_pull_request.yml b/.github/workflows/lint_pull_request.yml index 15b92f89266..210155d6bec 100644 --- a/.github/workflows/lint_pull_request.yml +++ b/.github/workflows/lint_pull_request.yml @@ -43,14 +43,15 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Calculate lychee cache key + id: lychee-cache-key + run: echo "::set-output name=key::$(date +'%G-%V')" # %G = year; %V = week number + - name: Restore lychee cache uses: actions/cache@v3 - if: always() with: path: .lycheecache - key: cache-lychee-all-branches - # the cache will not be updated and therefore needs to be recreated after 7 days - retention-days: 7 + key: cache-lychee-all-branches-${{ steps.lychee-cache-key.outputs.key }} - name: Link Checker uses: lycheeverse/lychee-action@v1.8.0