From 16db37d499dec03a57c2632dab285b5b37ebb35d Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Thu, 15 Aug 2024 08:21:53 -0600 Subject: [PATCH] Update all GitHub Actions we use --- .github/workflows/build-docs.yml | 6 +++--- .github/workflows/build-stable.yml | 6 +++--- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/cypress.yml | 12 ++++++------ .github/workflows/dependency-review.yml | 4 ++-- .github/workflows/generate-zip.yml | 6 +++--- .github/workflows/lint.yml | 10 +++++----- .github/workflows/release-pull-request.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 6 +++--- 10 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 6c9bcf482..388f2cb0d 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -9,9 +9,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@v4 - name: Use desired version of NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Check versions @@ -24,7 +24,7 @@ jobs: env: CI: true - name: Deploy to GH Pages - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: './docs-built' diff --git a/.github/workflows/build-stable.yml b/.github/workflows/build-stable.yml index cc5f510d3..bb7f35ce0 100644 --- a/.github/workflows/build-stable.yml +++ b/.github/workflows/build-stable.yml @@ -9,13 +9,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4 - name: Use desired version of NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Set PHP version - uses: shivammathur/setup-php@2.25.4 + uses: shivammathur/setup-php@v2 with: php-version: 7.4 tools: composer:v2, wp diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 57576c902..011fe3d2b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -26,7 +26,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 # Override language selection by uncommenting this and choosing your languages # with: # languages: go, javascript, csharp, python, cpp, java @@ -34,7 +34,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -48,4 +48,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 0cb7316c7..3bba9d4af 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -15,15 +15,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use desired version of NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Cache Node - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | node_modules @@ -56,10 +56,10 @@ jobs: core: {name: 'WP stable', version: 'latest'} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use desired version of NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -67,7 +67,7 @@ jobs: run: npm -v; node -v - name: Cache Node - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | node_modules diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 9aef07465..797c43ec3 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout Repository' - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Dependency Review - uses: actions/dependency-review-action@v3 + uses: actions/dependency-review-action@v4 with: license-check: true vulnerability-check: false diff --git a/.github/workflows/generate-zip.yml b/.github/workflows/generate-zip.yml index eb8c6c091..52d2be8f1 100644 --- a/.github/workflows/generate-zip.yml +++ b/.github/workflows/generate-zip.yml @@ -14,15 +14,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4 with: ref: ${{ inputs.ref }} - name: Use desired version of NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Set PHP version - uses: shivammathur/setup-php@2.17.0 + uses: shivammathur/setup-php@v2 with: php-version: 7.4 tools: composer:v2, wp diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7ec971b0a..6d58269fa 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,13 +18,13 @@ jobs: name: eslint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use desired version of NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Cache Node - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | node_modules @@ -53,9 +53,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@v44 with: files: | **/*.php diff --git a/.github/workflows/release-pull-request.yml b/.github/workflows/release-pull-request.yml index a6e623d53..8752338d6 100644 --- a/.github/workflows/release-pull-request.yml +++ b/.github/workflows/release-pull-request.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Generate title run: | BRANCH=${GITHUB_REF##*/} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb645df54..a209100b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4 - name: Create ZIP run: | git archive --prefix=distributor/ HEAD -o distributor.zip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ca7acc32e..c38685a8d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,14 +28,14 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4 - name: Set standard 10up cache directories run: | composer config -g cache-dir "${{ env.COMPOSER_CACHE }}" - name: Prepare composer cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE }} key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }} @@ -43,7 +43,7 @@ jobs: composer-${{ env.COMPOSER_VERSION }}- - name: Set PHP version - uses: shivammathur/setup-php@2.17.0 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} coverage: none