From 09d94eeef8ec3f194c6681cd15d1027038e23a7a Mon Sep 17 00:00:00 2001 From: Till0196 <16399842+Till0196@users.noreply.github.com> Date: Wed, 13 Nov 2024 19:49:50 +0900 Subject: [PATCH] =?UTF-8?q?100MB=E4=BB=A5=E4=B8=8A=E3=81=AE=E6=9C=80?= =?UTF-8?q?=E3=82=82=E6=96=B0=E3=81=97=E3=81=84=E3=82=AD=E3=83=A3=E3=83=83?= =?UTF-8?q?=E3=82=B7=E3=83=A5=E3=82=92=E4=BD=BF=E3=81=86=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b687625..6dfdd89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,11 +53,20 @@ jobs: run: | echo "CURRENT_TIME=$(TZ=Asia/Tokyo date "+%Y-%m-%d-%H%M%S")" >> $GITHUB_ENV + - name: Get latest cache key + id: cache-key + run: | + echo "LATEST_CACHE_KEY=$(gh cache list --key cache-pkgs-${{ env.PLATFORM_PAIR }}- --json key,sizeInBytes,createdAt --jq '.[] | select(.sizeInBytes >= 100*1024*1024) | .key' | head -n 1 | awk '{print $1}') >> $GITHUB_ENV + + - name: latest cache key echo + run: | + echo $LATEST_CACHE_KEY + - name: Package Cache id: cache uses: actions/cache@v4 with: - key: cache-pkgs-${{ env.PLATFORM_PAIR }}-${{ env.CURRENT_TIME }} + key: ${{ env.LATEST_CACHE_KEY }} restore-keys: cache-pkgs-${{ env.PLATFORM_PAIR }}- path: | tlmgr-pkgs