Skip to content

Commit 9e10437

Browse files
committed
github-actionify: cache only .m2/repository
Not the entire .m2 structure. Because .m2/settings.xml is generated by the build script only when it's not already present, and if we cache it, then CI builds may get stuck with old versions of settings.xml that aren't regenerated when they should be.
1 parent d9dc889 commit 9e10437

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github-actionify.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
env:
134134
cache-name: cache-m2
135135
with:
136-
path: ~/.m2
136+
path: ~/.m2/repository
137137
key: \${{ runner.os }}-build-\${{ env.cache-name }}
138138
restore-keys: |
139139
\${{ runner.os }}-build-\${{ env.cache-name }}-
@@ -180,7 +180,7 @@ jobs:
180180
env:
181181
cache-name: cache-m2
182182
with:
183-
path: ~/.m2
183+
path: ~/.m2/repository
184184
key: \${{ runner.os }}-build-\${{ env.cache-name }}
185185
restore-keys: |
186186
\${{ runner.os }}-build-\${{ env.cache-name }}-

0 commit comments

Comments
 (0)