From 19ed06969d812f998457c751cedf62e07e00d347 Mon Sep 17 00:00:00 2001 From: saltydk Date: Wed, 13 Mar 2024 21:25:21 +0100 Subject: [PATCH] GHA: follow cache docs --- .github/workflows/build-pr.yml | 10 +++++----- .github/workflows/build.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index b6b6319f6..f7cfa0143 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -31,13 +31,12 @@ jobs: with: python-version: '3.x' - - name: Setup Cache - uses: actions/cache@v4 + - name: Restore cache + id: cache-docs-restore + uses: actions/cache/restore@v4 with: key: docs-${{ hashfiles('.cache/**') }} path: .cache - restore-keys: | - docs- - name: Install dependencies run: sudo apt-get install pngquant @@ -68,10 +67,11 @@ jobs: gitHubToken: ${{ secrets.GH_TOKEN }} - name: Save build cache + id: cache-docs-save uses: actions/cache/save@v4 with: - key: docs-${{ hashfiles('.cache/**') }} path: .cache + key: ${{ steps.cache-docs-restore.outputs.cache-primary-key }} comment: needs: build diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 58853c2ba..3ad17e66f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,13 +51,12 @@ jobs: with: python-version: '3.x' - - name: Setup Cache - uses: actions/cache@v4 + - name: Restore cache + id: cache-docs-restore + uses: actions/cache/restore@v4 with: key: docs-${{ hashfiles('.cache/**') }} path: .cache - restore-keys: | - docs- - name: Install dependencies run: sudo apt-get install pngquant @@ -89,10 +88,11 @@ jobs: gitHubToken: ${{ secrets.GH_TOKEN }} - name: Save build cache + id: cache-docs-save uses: actions/cache/save@v4 with: - key: docs-${{ hashfiles('.cache/**') }} path: .cache + key: ${{ steps.cache-docs-restore.outputs.cache-primary-key }} webhook: name: 'webhook'