Skip to content

Commit

Permalink
chore: Node.js 16 actions are deprecated. Please update the following…
Browse files Browse the repository at this point in the history
… actions to use Node.js 20
  • Loading branch information
Andrii_Ostapenko1 authored and Andrii_Ostapenko1 committed May 23, 2024
1 parent 8f04efa commit 2b99ffb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,30 @@ jobs:
os: [ 'ubuntu-20.04']
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
lfs: true
- name: Cache gradle dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-caches-
- name: Cache gradle wrapper
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Setup java
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
- name: Build with gradle
run: ./gradlew build
- name: Upload test results
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: build/reports/junit
name: Test Report
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Prepare branch
run: |
git config user.name github-actions
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
os: [ 'ubuntu-20.04']
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
lfs: true
- name: Checkout branch (Windows)
Expand All @@ -60,7 +60,7 @@ jobs:
git fetch
git checkout -b workflow-$GITHUB_RUN_ID origin/workflow-$GITHUB_RUN_ID~1
- name: Setup java
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
- name: Build with gradle
Expand All @@ -73,7 +73,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
- name: Release branch
Expand All @@ -92,18 +92,18 @@ jobs:
name: Publish Maven
if: ${{ !contains(github.event.head_commit.message, '[skip-ci]') }}
needs: release
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Checkout branch
run: |
git config user.name github-actions
git config user.email [email protected]
git fetch
git checkout -b workflow-$GITHUB_RUN_ID origin/workflow-$GITHUB_RUN_ID~1
- name: Setup java
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 11
- name: Publish jars
Expand All @@ -119,10 +119,10 @@ jobs:
name: Cleanup
if: ${{ always() && !contains(github.event.head_commit.message, '[skip-ci]') }}
needs: publish
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Cleanup
run: |
git config user.name github-actions
Expand Down

0 comments on commit 2b99ffb

Please sign in to comment.