Skip to content

Commit 321b88a

Browse files
authored
fix: invalidate maven cache on pom.xml changes (#649)
1 parent c9321bf commit 321b88a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actions/maven-snapshot-deploy/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ runs:
189189
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
190190
with:
191191
path: ~/.m2/repository
192-
key: maven-${{ runner.os }}
192+
key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
193193
restore-keys: |
194-
maven-${{ runner.os }}
194+
maven-${{ runner.os }}-
195195
196196
- name: "Set up JDK for deployment"
197197
if: ${{ inputs.maven-command == 'deploy' }}

0 commit comments

Comments
 (0)