From 45e60e585eed63353301f797c75da4e553ce21ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 13 Sep 2023 22:14:13 +0200 Subject: [PATCH 1/2] Update GitHub Action workflows to `actions/checkout@v4` Keep this up to date in all non-security-only branches, because the node.js runtime for older versions might get deprecated in the future and fixing this for all branches at once is easier. --- .github/workflows/nightly.yml | 20 ++++++++++---------- .github/workflows/push.yml | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1ff8b6847a4..8f056fc9a2d 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -13,7 +13,7 @@ jobs: matrix-include: ${{ steps.set-matrix.outputs.matrix-include }} windows-matrix-include: ${{ steps.set-matrix.outputs.windows-matrix-include }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Set fetch-depth to 0 to clone the full repository # including all branches. This is required to find @@ -54,7 +54,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ matrix.branch.ref }} - name: Create MSSQL container @@ -142,7 +142,7 @@ jobs: MYSQL_ROOT_PASSWORD: root steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ matrix.branch.ref }} - name: apt @@ -204,7 +204,7 @@ jobs: runs-on: macos-11 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ matrix.branch.ref }} - name: brew @@ -259,7 +259,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Create MSSQL container uses: ./.github/actions/setup-mssql - name: Create Oracle container @@ -308,7 +308,7 @@ jobs: USE_TRACKED_ALLOC: 1 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ matrix.branch.ref }} - name: apt @@ -424,7 +424,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ matrix.branch.ref }} - name: Create MSSQL container @@ -500,7 +500,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ matrix.branch.ref }} - name: apt @@ -599,7 +599,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ matrix.branch.ref }} - name: apt @@ -670,7 +670,7 @@ jobs: - name: git config run: git config --global core.autocrlf false && git config --global core.eol lf - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ matrix.branch.ref }} - name: Setup diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b346bb491d6..4a6eefd6fbb 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -51,7 +51,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Create MSSQL container uses: ./.github/actions/setup-mssql - name: Create Oracle container @@ -95,7 +95,7 @@ jobs: runs-on: macos-11 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: brew uses: ./.github/actions/brew - name: ccache @@ -141,7 +141,7 @@ jobs: - name: git config run: git config --global core.autocrlf false && git config --global core.eol lf - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup-windows - name: Build From 99cd81cd0a317643d28b110741a5125f7c8896aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 13 Sep 2023 22:17:13 +0200 Subject: [PATCH 2/2] Update GitHub Action workflows to `actions/checkout@v4` (8.3+) This applies the upgrade for workflows that have been added in the PHP-8.3 branch. --- .github/workflows/nightly.yml | 14 +++++++------- .github/workflows/push.yml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 09769a6c2ea..34a714fb1c2 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -751,36 +751,36 @@ jobs: CXX: ccache g++ steps: - name: git checkout PHP - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: php - name: git checkout apcu - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: krakjoe/apcu path: apcu - name: git checkout imagick - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: Imagick/imagick path: imagick - name: git checkout memcached - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: php-memcached-dev/php-memcached path: memcached - name: git checkout redis - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: phpredis/phpredis path: redis - name: git checkout xdebug - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xdebug/xdebug path: xdebug - name: git checkout yaml - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: php/pecl-file_formats-yaml path: yaml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4b24a20c602..87666c47d26 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -198,7 +198,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: git checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: apt @@ -257,7 +257,7 @@ jobs: mysql -uroot -proot -e "CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'wordpress'; FLUSH PRIVILEGES;" mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON *.* TO 'wordpress'@'localhost' WITH GRANT OPTION;" - name: git checkout benchmarking-data - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: php/benchmarking-data ssh-key: ${{ secrets.BENCHMARKING_DATA_DEPLOY_KEY }}