From 058fd8f27cc1cf7e9d21846cbd3cf89e939920fb Mon Sep 17 00:00:00 2001 From: Darshan Gada Date: Fri, 2 Feb 2024 19:08:58 +0530 Subject: [PATCH 1/2] fix: Deprecations in CI action --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b8da9ce..dbf85ad7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout the project - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup the PHP ${{ matrix.php }} environment on ${{ runner.os }} uses: shivammathur/setup-php@v2 @@ -28,11 +28,11 @@ jobs: php-version: ${{ matrix.php }} coverage: xdebug env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Restore the Composer cache directory id: composercache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v2 with: From 5df9993caba60dfc527b0c9f1b7bf78b8fdbbf23 Mon Sep 17 00:00:00 2001 From: Darshan Gada Date: Fri, 2 Feb 2024 19:14:18 +0530 Subject: [PATCH 2/2] feat: upgrade actions/cache to v3 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dbf85ad7..3e48024c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ jobs: id: composercache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ${{ steps.composercache.outputs.dir }} key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}