From 3da6b1d4bbca3dddb7fef11dd94a54a109bf3003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 22 Oct 2024 09:18:23 +0200 Subject: [PATCH] Update GitHub Actions (#230) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update to `actions/checkout@v4` This fixes: > The following actions uses node12 which is deprecated and will be forced to > run on node16: actions/checkout@v2. For more info: > https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/ Signed-off-by: Tim Düsterhus * Update to `actions/cache/*@v4` Signed-off-by: Tim Düsterhus --------- Signed-off-by: Tim Düsterhus --- .github/workflows/changelog_verifier.yml | 2 +- .github/workflows/dependabot_pr.yml | 4 ++-- .github/workflows/links.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 14 +++++++------- .github/workflows/test_unreleased.yml | 8 ++++---- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/changelog_verifier.yml b/.github/workflows/changelog_verifier.yml index 992a38b6..3a4f731e 100644 --- a/.github/workflows/changelog_verifier.yml +++ b/.github/workflows/changelog_verifier.yml @@ -8,7 +8,7 @@ jobs: verify-changelog: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha }} diff --git a/.github/workflows/dependabot_pr.yml b/.github/workflows/dependabot_pr.yml index 5abbd37e..baad9d11 100644 --- a/.github/workflows/dependabot_pr.yml +++ b/.github/workflows/dependabot_pr.yml @@ -25,7 +25,7 @@ jobs: installation_id: 22958780 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ steps.github_app_token.outputs.token }} @@ -41,4 +41,4 @@ jobs: branch: ${{ github.head_ref }} commit_user_name: dependabot[bot] commit_user_email: support@github.com - commit_options: '--signoff' \ No newline at end of file + commit_options: '--signoff' diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 3c51ffdc..0295b3d7 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: lychee Link Checker id: lychee uses: lycheeverse/lychee-action@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ba6c3fb..32996079 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: issues: write contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - id: get_data run: echo "approvers=$(cat .github/CODEOWNERS | grep @ | tr -d '* ' | sed 's/@/,/g' | sed 's/,//1')" >> $GITHUB_OUTPUT diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04cffe5f..1a4cf582 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use PHP 8.3 uses: shivammathur/setup-php@v2 @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use PHP 8.3 uses: shivammathur/setup-php@v2 @@ -68,7 +68,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use PHP 8.3 uses: shivammathur/setup-php@v2 @@ -115,7 +115,7 @@ jobs: - windows-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use PHP ${{ matrix.php-version }} uses: shivammathur/setup-php@v2 @@ -153,7 +153,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use PHP 8.3 uses: shivammathur/setup-php@v2 @@ -212,7 +212,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use PHP 8.3 uses: shivammathur/setup-php@v2 @@ -260,7 +260,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use PHP 8.3 uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/test_unreleased.yml b/.github/workflows/test_unreleased.yml index 196f5212..36b9fc38 100644 --- a/.github/workflows/test_unreleased.yml +++ b/.github/workflows/test_unreleased.yml @@ -17,7 +17,7 @@ jobs: opensearch_ref: [ '1.x', '2.x', 'main' ] steps: - name: Checkout PHP Client - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use PHP 8.3 uses: shivammathur/setup-php@v2 @@ -32,7 +32,7 @@ jobs: composer install --prefer-dist - name: Checkout OpenSearch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: opensearch-project/OpenSearch ref: ${{ matrix.opensearch_ref }} @@ -45,7 +45,7 @@ jobs: - name: Restore cached build id: cache-restore - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: opensearch/distribution/archives/linux-tar/build/distributions key: ${{ steps.get-key.outputs.key }} @@ -63,7 +63,7 @@ jobs: - name: Save cached build if: steps.cache-restore.outputs.cache-hit != 'true' - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 with: path: opensearch/distribution/archives/linux-tar/build/distributions key: ${{ steps.get-key.outputs.key }}