From 42f5506c0c1f8eaa82fd1d9e6cec7f97504b232b Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Tue, 2 Aug 2022 11:37:48 +0500 Subject: [PATCH] cache key --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9fd93a5..fd209421 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,10 +85,10 @@ jobs: uses: actions/cache@v2 with: path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ runner.os }}-composer- + key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.laravel }}--${{ hashFiles('**/composer.lock') }} - - name: Install Composer dependencies + -if: steps.composer-cache.outputs.cache-hit != 'true' + name: Install Composer dependencies run: | composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update composer update --prefer-dist --no-interaction