Skip to content

Commit

Permalink
Update GitHub Actions (#230)
Browse files Browse the repository at this point in the history
* 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 <tim@tideways-gmbh.com>

* Update to `actions/cache/*@v4`

Signed-off-by: Tim Düsterhus <tim@tideways-gmbh.com>

---------

Signed-off-by: Tim Düsterhus <tim@tideways-gmbh.com>
  • Loading branch information
TimWolla authored Oct 22, 2024
1 parent e2d50d9 commit 3da6b1d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog_verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependabot_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -41,4 +41,4 @@ jobs:
branch: ${{ github.head_ref }}
commit_user_name: dependabot[bot]
commit_user_email: support@github.com
commit_options: '--signoff'
commit_options: '--signoff'
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 3da6b1d

Please sign in to comment.