Skip to content

Commit 10bf19f

Browse files
committed
build: Update GH actions
1 parent ec5ab71 commit 10bf19f

File tree

3 files changed

+15
-33
lines changed

3 files changed

+15
-33
lines changed

.github/workflows/early-access.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,19 @@ jobs:
1616
VERSION: ${{ steps.vars.outputs.VERSION }}
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: Cancel previous run
22-
uses: styfle/cancel-workflow-action@0.11.0
22+
uses: styfle/cancel-workflow-action@0.12.1
2323
with:
2424
access_token: ${{ secrets.GITHUB_TOKEN }}
2525

2626
- name: Setup Java
27-
uses: actions/setup-java@v3
27+
uses: actions/setup-java@v4
2828
with:
2929
java-version: ${{ env.JAVA_VERSION }}
3030
distribution: ${{ env.JAVA_DISTRO }}
31-
32-
- name: Cache local Maven repository
33-
uses: actions/cache@v3
34-
with:
35-
path: ~/.m2/repository
36-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
37-
restore-keys: ${{ runner.os }}-maven-
31+
cache: maven
3832

3933
- name: Version
4034
id: vars
@@ -49,22 +43,16 @@ jobs:
4943
runs-on: ubuntu-latest
5044
steps:
5145
- name: Checkout
52-
uses: actions/checkout@v3
46+
uses: actions/checkout@v4
5347
with:
5448
fetch-depth: 0
5549

5650
- name: Setup Java
57-
uses: actions/setup-java@v3
51+
uses: actions/setup-java@v4
5852
with:
5953
java-version: ${{ env.JAVA_VERSION }}
6054
distribution: ${{ env.JAVA_DISTRO }}
61-
62-
- name: Cache Maven
63-
uses: actions/cache@v3
64-
with:
65-
path: ~/.m2/repository
66-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
67-
restore-keys: ${{ runner.os }}-m2
55+
cache: maven
6856

6957
- name: Setup JDKs
7058
run: ./mvnw -ntp -B -q --file pom.xml -Pjdks
@@ -90,7 +78,7 @@ jobs:
9078

9179
- name: JReleaser output
9280
if: always()
93-
uses: actions/upload-artifact@v3
81+
uses: actions/upload-artifact@v4
9482
with:
9583
name: jreleaser-release
9684
path: |

.github/workflows/release.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
VERSION: ${{ steps.vars.outputs.VERSION }}
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- name: Version
2525
id: vars
@@ -37,23 +37,17 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
with:
4242
ref: main
4343
fetch-depth: 0
4444

4545
- name: Setup Java
46-
uses: actions/setup-java@v3
46+
uses: actions/setup-java@v4
4747
with:
4848
java-version: ${{ env.JAVA_VERSION }}
4949
distribution: ${{ env.JAVA_DISTRO }}
50-
51-
- name: Cache Maven
52-
uses: actions/cache@v3
53-
with:
54-
path: ~/.m2/repository
55-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
56-
restore-keys: ${{ runner.os }}-m2
50+
cache: maven
5751

5852
- name: Setup JDKs
5953
run: ./mvnw -ntp -B -q --file pom.xml -Pjdks
@@ -79,7 +73,7 @@ jobs:
7973

8074
- name: JReleaser output
8175
if: always()
82-
uses: actions/upload-artifact@v3
76+
uses: actions/upload-artifact@v4
8377
with:
8478
name: jreleaser-release
8579
path: |

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<plugin>
6868
<groupId>org.apache.maven.plugins</groupId>
6969
<artifactId>maven-compiler-plugin</artifactId>
70-
<version>3.11.0</version>
70+
<version>3.12.1</version>
7171
</plugin>
7272
<plugin>
7373
<groupId>org.apache.maven.plugins</groupId>
@@ -92,7 +92,7 @@
9292
<plugin>
9393
<groupId>org.jreleaser</groupId>
9494
<artifactId>jdks-maven-plugin</artifactId>
95-
<version>1.5.1</version>
95+
<version>1.10.0</version>
9696
<configuration>
9797
<pkgs>
9898
<pkg>

0 commit comments

Comments
 (0)