Skip to content

Commit 989b11c

Browse files
committed
chore: update GitHub Actions workflows
1 parent d60276c commit 989b11c

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,14 @@ jobs:
88
runs-on: ubuntu-20.04
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 2
1414
- name: Setup JDK
15-
uses: actions/setup-java@v1
15+
uses: actions/setup-java@v4
1616
with:
1717
java-version: 17
18-
- name: Cache local Maven repository
19-
uses: actions/cache@v2
20-
with:
21-
path: ~/.m2/repository
22-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
23-
restore-keys: |
24-
${{ runner.os }}-maven-
18+
distribution: 'temurin'
19+
cache: 'maven'
2520
- name: mvn build
26-
run: ./mvnw clean install -Djib.skip -B
21+
run: ./mvnw clean install -Djib.skip -B -ntp

.github/workflows/release-patch.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ jobs:
88
runs-on: ubuntu-20.04
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
1414
# We need a personal access token to be able to push to a protected branch
1515
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
1616

1717
- name: Setup JDK
18-
uses: actions/setup-java@v2
18+
uses: actions/setup-java@v4
1919
with:
2020
java-version: 17
2121
java-package: jdk
22-
distribution: adopt
22+
distribution: 'temurin'
2323
architecture: x64
2424
# this also creates settings.xml with the following server
2525
server-id: sonatype-nexus-staging # Value of the distributionManagement/repository/id field of the pom.xml

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
runs-on: ubuntu-20.04
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
2424
# We need a personal access token to be able to push to a protected branch
2525
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
2626

2727
- name: Setup JDK
28-
uses: actions/setup-java@v2
28+
uses: actions/setup-java@v4
2929
with:
3030
java-version: 17
3131
java-package: jdk
32-
distribution: adopt
32+
distribution: 'temurin'
3333
architecture: x64
3434
# this also creates settings.xml with the following server
3535
server-id: sonatype-nexus-staging # Value of the distributionManagement/repository/id field of the pom.xml

0 commit comments

Comments
 (0)