Skip to content

Commit c884d0d

Browse files
committed
[Build] Use own cache in Version-Increment workflow
1 parent 262d13c commit c884d0d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/checkVersions.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,15 @@ jobs:
4848
with:
4949
java-version: 21
5050
distribution: 'temurin'
51-
cache: maven
51+
52+
# Ensure this workflow has its own cache
53+
- name: Cache local Maven repository
54+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
55+
with:
56+
path: ~/.m2/repository
57+
key: ${{ runner.os }}-version-check-${{ hashFiles('**/pom.xml') }}
58+
restore-keys: |
59+
${{ runner.os }}-version-check-
5260
5361
- name: Set up Maven
5462
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5

0 commit comments

Comments
 (0)