diff --git a/.github/workflows/parallel.yml b/.github/workflows/parallel.yml index d056539ea11b..ddf6caff6778 100644 --- a/.github/workflows/parallel.yml +++ b/.github/workflows/parallel.yml @@ -90,13 +90,16 @@ jobs: run: | cp .env.ci .env - - name: Cache composer 📦 - uses: actions/cache@v2 - id: php-cache # use this to check for `cache-hit` (`steps.php-cache.outputs.cache-hit != 'true'`) + - name: Get Composer Cache Directory + id: composer-cache + run: | + echo "::set-output name=dir::$(composer config cache-files-dir)" + - uses: actions/cache@v2 with: - path: ${{ steps.composercache.outputs.dir }} + path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer- + restore-keys: | + ${{ runner.os }}-${{ matrix.php }}-composer- # - name: Cache dependencies actions/cache@v3 # uses: actions/cache@v3