Skip to content

Commit b9b3d78

Browse files
committed
Update actions/cache action to v5
1 parent 7745c28 commit b9b3d78

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/check-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
java-version: ${{ matrix.java }}
4141

4242
- name: Cache Maven
43-
uses: actions/cache@v4
43+
uses: actions/cache@v5
4444
with:
4545
path: ~/.m2/repository
4646
key: ${{ runner.os }}-mvn-build-${{ hashFiles('**/pom.xml') }}
@@ -98,7 +98,7 @@ jobs:
9898
java-version: 11
9999

100100
- name: Cache Maven
101-
uses: actions/cache@v4
101+
uses: actions/cache@v5
102102
with:
103103
path: ~/.m2/repository
104104
key: ${{ runner.os }}-mvn-build-java-11-${{ hashFiles('**/pom.xml') }}
@@ -126,15 +126,15 @@ jobs:
126126
java-version: ${{ matrix.java }}
127127

128128
- name: Cache Maven
129-
uses: actions/cache@v4
129+
uses: actions/cache@v5
130130
with:
131131
path: ~/.m2/repository
132132
key: ${{ runner.os }}-mvn-checkstyle-${{ hashFiles('**/pom.xml') }}
133133
restore-keys: |
134134
${{ runner.os }}-mvn-checkstyle-
135135
136136
- name: CheckStyle Cache
137-
uses: actions/cache@v4
137+
uses: actions/cache@v5
138138
with:
139139
path: '**/target/checkstyle-cachefile'
140140
key: ${{ runner.os }}-checkstyle-${{ hashFiles('**/pom.xml') }}
@@ -162,15 +162,15 @@ jobs:
162162
java-version: ${{ matrix.java }}
163163

164164
- name: Cache Maven
165-
uses: actions/cache@v4
165+
uses: actions/cache@v5
166166
with:
167167
path: ~/.m2/repository
168168
key: ${{ runner.os }}-mvn-pmd-${{ hashFiles('**/pom.xml') }}
169169
restore-keys: |
170170
${{ runner.os }}-mvn-pmd-
171171
172172
- name: PMD Cache
173-
uses: actions/cache@v4
173+
uses: actions/cache@v5
174174
with:
175175
path: '**/target/pmd/pmd.cache'
176176
key: ${{ runner.os }}-pmd-${{ hashFiles('**/pom.xml') }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
# Try to reuse existing cache from check-build
3030
- name: Try restore Maven Cache
31-
uses: actions/cache/restore@v4
31+
uses: actions/cache/restore@v5
3232
with:
3333
path: ~/.m2/repository
3434
key: ${{ runner.os }}-mvn-build-${{ hashFiles('**/pom.xml') }}
@@ -179,7 +179,7 @@ jobs:
179179

180180
# Try to reuse existing cache from check-build
181181
- name: Try restore Maven Cache
182-
uses: actions/cache/restore@v4
182+
uses: actions/cache/restore@v5
183183
with:
184184
path: ~/.m2/repository
185185
key: ${{ runner.os }}-mvn-build-${{ hashFiles('**/pom.xml') }}

0 commit comments

Comments
 (0)