From 4ee475fd3d66dadf8838adb77b1d89a3aa2f45a5 Mon Sep 17 00:00:00 2001 From: Stijn Klopper Date: Tue, 11 Feb 2025 12:59:58 +0100 Subject: [PATCH] Upgrade deprecated actions/cache in workflow to v4 --- .github/workflows/main.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 278056d..408a4a7 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -17,8 +17,9 @@ jobs: php-version: ${{ matrix.php-versions }} - name: Get composer cache directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 + run: | + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}