diff --git a/checkout-and-setup/action.yml b/checkout-and-setup/action.yml index fef0b36..13b6762 100644 --- a/checkout-and-setup/action.yml +++ b/checkout-and-setup/action.yml @@ -44,7 +44,15 @@ runs: with: distribution: 'zulu' java-version: ${{ inputs.java-version }} - cache: ${{ inputs.cache }} + - name: Cache local Maven repo + id: cache + if: ${{ inputs.cache == 'maven' }} + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Configure Problem Matchers if: ${{ inputs.java-version != '' }} shell: bash