From 01543c62cde37141d56f0c74c813632ce4a11ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Fri, 26 Jan 2024 15:06:27 +0100 Subject: [PATCH] Use newer versions of actions and Environment Files (#124) * Use the newer versions of checkout and cache actions The old ones use node 12 which is unsupported now. * Use Environment Files instead of the deprecated set-output command --- .github/workflows/main.yaml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 3b34c43..3993011 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -23,7 +23,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Setup PHP cache environment" id: "extcache" @@ -34,7 +34,7 @@ jobs: key: "${{ env.cache-version }}" - name: "Cache PHP extensions" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: "${{ steps.extcache.outputs.dir }}" key: "${{ steps.extcache.outputs.key }}" @@ -52,10 +52,10 @@ jobs: - name: "Get 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' - name: "Cache PHP dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: "${{ steps.composercache.outputs.dir }}" key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}" @@ -85,7 +85,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Setup PHP cache environment" id: "extcache" @@ -96,7 +96,7 @@ jobs: key: "${{ env.cache-version }}" - name: "Cache PHP extensions" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: "${{ steps.extcache.outputs.dir }}" key: "${{ steps.extcache.outputs.key }}" @@ -114,10 +114,10 @@ jobs: - name: "Get 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' - name: "Cache PHP dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: "${{ steps.composercache.outputs.dir }}" key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}" @@ -160,7 +160,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Setup PHP cache environment" id: "extcache" @@ -171,7 +171,7 @@ jobs: key: "${{ env.cache-version }}" - name: "Cache PHP extensions" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: "${{ steps.extcache.outputs.dir }}" key: "${{ steps.extcache.outputs.key }}" @@ -189,10 +189,10 @@ jobs: - name: "Get 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' - name: "Cache PHP dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: "${{ steps.composercache.outputs.dir }}" key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}" @@ -227,7 +227,7 @@ jobs: --health-retries=3 steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Setup PHP cache environment" id: "extcache" @@ -238,7 +238,7 @@ jobs: key: "${{ env.cache-version }}" - name: "Cache PHP extensions" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: "${{ steps.extcache.outputs.dir }}" key: "${{ steps.extcache.outputs.key }}" @@ -257,10 +257,10 @@ jobs: - name: "Get 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' - name: "Cache PHP dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v3" with: path: "${{ steps.composercache.outputs.dir }}" key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"