From 1323d94cdb42b21ebe5f3438faf7f073a0c589f1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 14:51:22 +0100 Subject: [PATCH] Update actions/cache action to v4 (#102) * Update actions/cache action to v4 | datasource | package | from | to | | ----------- | ------------- | ---- | -- | | github-tags | actions/cache | v3 | v4 | * Fix cache key --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dragos Protung --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44458f2..8c6b95a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,11 +33,11 @@ jobs: run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }} - restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer- + key: php-${{ matrix.php-versions }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }} + restore-keys: "php-${{ matrix.php-versions }}-composer-${{ matrix.dependencies }}-" - name: Install lowest dependencies if: ${{ matrix.dependencies == 'lowest' }}