slawekjaranowski commented on code in PR #339:
URL: 
https://github.com/apache/maven-gh-actions-shared/pull/339#discussion_r4247492097


##########
.github/workflows/maven-verify.yml:
##########
@@ -314,6 +314,9 @@ jobs:
         with:
           java-version: ${{ inputs.ff-jdk-toolchain }}
           distribution: ${{ inputs.ff-jdk-distribution }}
+          cache-jdk: true
+          # only the default branch saves caches; other branches and pull 
requests restore them
+          cache-read-only: ${{ github.ref_name != 
github.event.repository.default_branch }}

Review Comment:
   What with branches like `maven-4.0.x`, and so on for multi versions projects?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to