Skip to content

Commit

Permalink
[improve][ci] Upgrade GitHub Actions to newer versions to fix depreca…
Browse files Browse the repository at this point in the history
…tion warning

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, actions/setup-java@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
  • Loading branch information
lhotari committed Jan 27, 2024
1 parent d37d31f commit 462013e
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 53 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-go-functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
docs_only: ${{ steps.check_changes.outputs.docs_only }}
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Detect changed files
id: changes
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-maven-cache-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm
Expand All @@ -91,7 +91,7 @@ jobs:
- name: Cache local Maven repository
if: ${{ github.event_name == 'schedule' || steps.changes.outputs.poms == 'true' }}
id: cache
uses: actions/cache@v3
uses: actions/cache@v4
timeout-minutes: 5
with:
path: |
Expand All @@ -103,7 +103,7 @@ jobs:
# cache would be used as the starting point for a new cache entry

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
if: ${{ (github.event_name == 'schedule' || steps.changes.outputs.poms == 'true') && steps.cache.outputs.cache-hit != 'true' }}
with:
distribution: 'temurin'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-owasp-dependency-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}

- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Cache local Maven repository
uses: actions/cache@v3
uses: actions/cache@v4
timeout-minutes: 5
with:
path: |
Expand All @@ -72,7 +72,7 @@ jobs:
${{ runner.os }}-m2-dependencies-core-modules-
- name: Set up JDK ${{ matrix.jdk || '17' }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk || '17' }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pulsar-ci-flaky.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- name: checkout
if: ${{ github.event_name == 'pull_request' }}
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Detect changed files
if: ${{ github.event_name == 'pull_request' }}
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
if: ${{ needs.preconditions.outputs.docs_only != 'true' }}
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm
Expand All @@ -174,7 +174,7 @@ jobs:
limit-access-to-actor: true

- name: Cache local Maven repository
uses: actions/cache@v3
uses: actions/cache@v4
timeout-minutes: 5
with:
path: |
Expand All @@ -185,7 +185,7 @@ jobs:
${{ runner.os }}-m2-dependencies-core-modules-
- name: Set up JDK ${{ env.CI_JDK_MAJOR_VERSION }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.CI_JDK_MAJOR_VERSION }}
Expand Down
Loading

0 comments on commit 462013e

Please sign in to comment.