Skip to content

Commit 0a2a4a9

Browse files
committed
[Build] Use dedicated cache for Version-Increment workflow
This avoids conflicting interference with the caches of the verification workflows in SWT.
1 parent 262d13c commit 0a2a4a9

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+
# Use a dedicated cache to prevent conflicts with the verification build cache
53+
- name: Cache local Maven repository
54+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
55+
with:
56+
path: ~/.m2/repository
57+
key: version-check-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
58+
restore-keys: |
59+
version-check-${{ runner.os }}-maven-
5260
5361
- name: Set up Maven
5462
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5

0 commit comments

Comments
 (0)